mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-15 02:21:21 +01:00
Disconnect on error
This commit is contained in:
parent
39dc966138
commit
2d81c923a9
@ -11,6 +11,9 @@ class Gateway(Namespace):
|
|||||||
db.session.commit()
|
db.session.commit()
|
||||||
db.session.remove()
|
db.session.remove()
|
||||||
|
|
||||||
|
def on_error(self):
|
||||||
|
disconnect()
|
||||||
|
|
||||||
def on_connect(self):
|
def on_connect(self):
|
||||||
emit('hello')
|
emit('hello')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user