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:
@ -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");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user