Close the socket once we are done
This commit is contained in:
parent
bb2ba6da39
commit
ed303285a8
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user