From ed303285a8873e9c91186fee372d101a87dbd99e Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sat, 15 Jul 2006 17:07:59 +0200 Subject: [PATCH] Close the socket once we are done --- shell/Emulator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/shell/Emulator.py b/shell/Emulator.py index 2e3dc774..21308a48 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