mirror of
https://github.com/Threnklyn/MinecraftChat.git
synced 2026-06-05 20:59:03 +02:00
Working error handler
This commit is contained in:
@@ -1,9 +1,18 @@
|
||||
module.exports = function(socket) {
|
||||
|
||||
|
||||
socket.on('disconnect', function() {
|
||||
if (socket.mcbot) {
|
||||
socket.mcbot.end();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
socket.on('bot:disconnect', function() {
|
||||
if (socket.mcbot) {
|
||||
socket.mcbot.end();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user