Fixed some issues with which hooks the reset command calls. Resolves #499.
This commit is contained in:
parent
bbba449aa4
commit
e76061ee4c
4 changed files with 12 additions and 5 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue