Skip to content
Snippets Groups Projects
Commit 041f949b authored by Panos Christeas's avatar Panos Christeas
Browse files

websrv_lib: one case of cleaner exit.

One rare case, where a module is destructed upon python interpreter exit,
and we need to check.

bzr revid: p_christ@hol.gr-20100726093334-cgirmmldh2mgvovm
parent ea4bb981
Branches
Tags
No related merge requests found
......@@ -399,6 +399,8 @@ class ConnThreadingMixIn:
def _handle_request_noblock(self):
"""Start a new thread to process the request."""
if not threading: # happens while quitting python
return
t = threading.Thread(target = self._handle_request2)
if self.daemon_threads:
t.setDaemon (1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment