shits broken
This commit is contained in:
parent
5b403e9c3b
commit
b0d5953164
|
@ -405,7 +405,7 @@ async function handshake(name, password){
|
|||
}
|
||||
});
|
||||
|
||||
ws.on("error", function(code, reason)){
|
||||
ws.on("error", function(code, reason){
|
||||
|
||||
deek.emit("error", "code=" + code + " reason=" + reason);
|
||||
});
|
||||
|
@ -1114,20 +1114,14 @@ deek.on("close", function(channel){
|
|||
|
||||
console.log("It's over. Disconnected from websocket. Attempting reconnection in 10 seconds");
|
||||
|
||||
setTimeout(function(){
|
||||
|
||||
fs.utimesSync(__filename, Date.now(), Date.now());
|
||||
}, 10000);
|
||||
});
|
||||
|
||||
deek.on("error", function(message){
|
||||
|
||||
console.error("Serber error: " + message + ". Attempting reconnection in 10 seconds");
|
||||
|
||||
setTimeout(function(){
|
||||
|
||||
fs.utimesSync(__filename, Date.now(), Date.now());
|
||||
}, 10000);
|
||||
});
|
||||
|
||||
// connect to serber
|
||||
|
|
Loading…
Reference in New Issue