forked from openlp/openlp
Stop the HTTP server properly too
This commit is contained in:
parent
f693d3aa37
commit
5612be1b5a
@ -72,7 +72,10 @@ class HttpWorker(ThreadWorker):
|
|||||||
A method to stop the worker
|
A method to stop the worker
|
||||||
"""
|
"""
|
||||||
if hasattr(self, 'server'):
|
if hasattr(self, 'server'):
|
||||||
self.server.close()
|
# Loop through all the channels and close them to stop the server
|
||||||
|
for channel in self.server._map.values():
|
||||||
|
if hasattr(channel, 'close'):
|
||||||
|
channel.close()
|
||||||
|
|
||||||
|
|
||||||
class HttpServer(RegistryBase, RegistryProperties, LogMixin):
|
class HttpServer(RegistryBase, RegistryProperties, LogMixin):
|
||||||
|
Loading…
Reference in New Issue
Block a user