Commit 729ba6d0 authored by Guido van Rossum's avatar Guido van Rossum

Make the ConnectThread a daemon thread. This prevents an unsuccessful

ConnectThread from hanging the application on exit.
parent 6a1571aa
...@@ -172,6 +172,7 @@ class ConnectionManager: ...@@ -172,6 +172,7 @@ class ConnectionManager:
self.thread = t = ConnectThread(self, self.client, self.thread = t = ConnectThread(self, self.client,
self.addrlist, self.addrlist,
self.tmin, self.tmax) self.tmin, self.tmax)
t.setDaemon(1)
t.start() t.start()
if sync: if sync:
while self.connection is None: while self.connection is None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment