Changed the .running check since checking for 0 tended to give running errors at reload.

This commit is contained in:
Griatch 2016-05-26 16:27:24 +02:00
parent 7c3d072915
commit 88e7813110

View file

@ -35,7 +35,7 @@ class EvenniaGameIndexService(Service):
_FIRST_UPDATE_DELAY, self.loop.start, _CLIENT_UPDATE_RATE)
def stopService(self):
if self.running == 0:
if not self.running:
# @reload errors if we've stopped this service.
return
super(EvenniaGameIndexService, self).stopService()