Fixed some issues with which hooks the reset command calls. Resolves #499.

This commit is contained in:
Griatch 2014-04-12 16:25:19 +02:00
parent bbba449aa4
commit e76061ee4c
4 changed files with 12 additions and 5 deletions

View file

@ -128,6 +128,12 @@ class Bot(Player):
"""
pass
def at_server_shutdown(self):
"We need to handle this case manually since the shutdown may be a reset"
print "bots at_server_shutdown called"
for session in self.get_all_sessions():
session.sessionhandler.disconnect(session)
# Bot implementations