Close the socket once we are done

This commit is contained in:
Marco Pesenti Gritti 2006-07-15 17:07:59 +02:00
parent bb2ba6da39
commit ed303285a8

View File

@ -21,6 +21,7 @@ class XephyrProcess(Process):
try: try:
s.connect(('127.0.0.1', 6000 + display_number)) s.connect(('127.0.0.1', 6000 + display_number))
logging.info('Display %d is already in use. Trying next.' % (display_number)) logging.info('Display %d is already in use. Trying next.' % (display_number))
s.close()
display_number += 1 display_number += 1
retries -= 1 retries -= 1