mirror of
https://github.com/evennia/evennia.git
synced 2026-03-21 15:26:30 +01:00
Added furster fix to avoid a traceback on an already stopped loop.
This commit is contained in:
parent
88e7813110
commit
343f2eed3f
1 changed files with 3 additions and 2 deletions
|
|
@ -35,11 +35,12 @@ class EvenniaGameIndexService(Service):
|
|||
_FIRST_UPDATE_DELAY, self.loop.start, _CLIENT_UPDATE_RATE)
|
||||
|
||||
def stopService(self):
|
||||
if not self.running:
|
||||
if self.running == 0:
|
||||
# @reload errors if we've stopped this service.
|
||||
return
|
||||
super(EvenniaGameIndexService, self).stopService()
|
||||
self.loop.stop()
|
||||
if self.loop.running:
|
||||
self.loop.stop()
|
||||
|
||||
def _die_on_bad_request(self):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue