Browse Source

Merge "Clean up command sockets on stop"

tags/3.5.0
Zuul 5 months ago
parent
commit
e476cfbc32
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      zuul/lib/commandsocket.py

+ 3
- 0
zuul/lib/commandsocket.py View File

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

Loading…
Cancel
Save