1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-22 08:22:04 +03: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"); channel = session.openChannel("exec");
((ChannelExec) channel).setCommand("telnet localhost 6571"); ((ChannelExec) channel).setCommand("telnet localhost 6571");