Skip to content

Commit 368155c

Browse files
committed
Try all on close
1 parent 243cbcd commit 368155c

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jderobot-commsmanager",
3-
"version": "1.0.9",
3+
"version": "1.0.10",
44
"main": "dist/main.js",
55
"typings": "dist/index.d.ts",
66
"scripts": {

src/components/CommsManager.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,7 @@ export default class CommsManager {
6363
);
6464
} else {
6565
console.log(`Connection with ${CommsManager.adress} interrupted`);
66-
setTimeout(function () {
67-
delete CommsManager.instance;
68-
CommsManager.instance = new CommsManager();
69-
}, 1000);
7066
}
71-
};
72-
73-
this.ws.onerror = (e) => {
74-
console.log(`Connection with ${CommsManager.adress} interrupted: ${e}`);
7567
setTimeout(function () {
7668
delete CommsManager.instance;
7769
CommsManager.instance = new CommsManager();

0 commit comments

Comments
 (0)