Merge "Clean up command sockets on stop"

This commit is contained in:
Zuul 2019-01-09 14:40:34 +00:00 committed by Gerrit Code Review
commit e476cfbc32
1 changed files with 3 additions and 0 deletions

View File

@ -55,6 +55,9 @@ class CommandSocket(object):
# re-entering their loop.
self.queue.put(b'_stop')
self.socket_thread.join()
self.socket.close()
if os.path.exists(self.path):
os.unlink(self.path)
def _socketListener(self):
while self.running: