Don't depend on notification server to run. stinky
This commit is contained in:
parent
4b6d192a93
commit
6232258ce6
1 changed files with 10 additions and 9 deletions
3
index.js
3
index.js
|
@ -284,6 +284,8 @@ const socket = io.connect(`http://${process.env.NOTIFICATION_SERVER_INSTANCE}:${
|
||||||
|
|
||||||
socket.on('connect', function (s) {
|
socket.on('connect', function (s) {
|
||||||
console.log('Successfully connected to notification server');
|
console.log('Successfully connected to notification server');
|
||||||
|
});
|
||||||
|
|
||||||
try {
|
try {
|
||||||
main();
|
main();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
@ -293,7 +295,6 @@ socket.on('connect', function (s) {
|
||||||
})
|
})
|
||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
});
|
|
||||||
|
|
||||||
function dismantle() {
|
function dismantle() {
|
||||||
socket.disconnect();
|
socket.disconnect();
|
||||||
|
|
Loading…
Reference in a new issue