mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-27 21:54:30 +01:00
NetworkMonitor: avoid connecting if session is closed
This commit is contained in:
parent
03f27cde63
commit
cd38516384
@ -83,6 +83,9 @@ public class NetworkMonitor extends AbstractMonitor {
|
||||
}
|
||||
}
|
||||
|
||||
if (!session.isConnected()) {
|
||||
return;
|
||||
}
|
||||
channel = session.openChannel("exec");
|
||||
((ChannelExec) channel).setCommand("telnet localhost 6571");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user