1
0
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:
Federico Fissore 2013-07-17 14:43:30 +02:00
parent 03f27cde63
commit cd38516384

View File

@ -83,6 +83,9 @@ public class NetworkMonitor extends AbstractMonitor {
}
}
if (!session.isConnected()) {
return;
}
channel = session.openChannel("exec");
((ChannelExec) channel).setCommand("telnet localhost 6571");