From ed303285a8873e9c91186fee372d101a87dbd99e Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sat, 15 Jul 2006 15:07:59 +0000 Subject: Close the socket once we are done --- (limited to 'shell') diff --git a/shell/Emulator.py b/shell/Emulator.py index 2e3dc77..21308a4 100644 --- a/shell/Emulator.py +++ b/shell/Emulator.py @@ -21,6 +21,7 @@ class XephyrProcess(Process): try: s.connect(('127.0.0.1', 6000 + display_number)) logging.info('Display %d is already in use. Trying next.' % (display_number)) + s.close() display_number += 1 retries -= 1 -- cgit v0.9.1