Skip to content

Commit eb11a73

Browse files
author
Alberto Iannaccone
authored
check all ports on agent disconnect (#399)
* check all ports on agent disconnect * 2.3.5
1 parent aa89947 commit eb11a73

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "arduino-create-agent-js-client",
3-
"version": "2.3.4",
3+
"version": "2.3.5",
44
"description": "JS module providing discovery of the Arduino Create Plugin and communication with it",
55
"main": "lib/index.js",
66
"module": "es/index.js",

src/socket-daemon.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,10 @@ export default class SocketDaemon extends Daemon {
110110
this.agentInfo = data;
111111
this.agentFound.next(true);
112112
}))
113-
.catch(() => timer(POLLING_INTERVAL).subscribe(() => this.findAgent()));
113+
.catch(() => timer(POLLING_INTERVAL).subscribe(() => {
114+
this.pluginURL = null;
115+
this.findAgent();
116+
}));
114117
return;
115118
}
116119

0 commit comments

Comments
 (0)