mirror of
https://github.com/progval/Limnoria.git
synced 2025-05-01 16:01:05 -05:00
Fix exception when stopping the HTTP server if already stopped.
This commit is contained in:
parent
ff2047997a
commit
fa3fc7d20a
@ -180,6 +180,7 @@ def stopServer():
|
|||||||
"""Stops the HTTP server. Should be run only from this module or from
|
"""Stops the HTTP server. Should be run only from this module or from
|
||||||
when the bot is dying (ie. from supybot.world)"""
|
when the bot is dying (ie. from supybot.world)"""
|
||||||
global httpServer
|
global httpServer
|
||||||
|
if httpServer is not None:
|
||||||
log.info('Stopping HTTP server.')
|
log.info('Stopping HTTP server.')
|
||||||
httpServer.shutdown()
|
httpServer.shutdown()
|
||||||
httpServer = None
|
httpServer = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user