This commit is contained in:
2022-10-23 18:48:28 +03:00
parent 9438ab4e53
commit 359c7816bc
3 changed files with 5 additions and 5 deletions

View File

@@ -29,7 +29,7 @@ PICloudServer::PICloudServer(const PIString & path, PIIODevice::DeviceMode mode)
CONNECTL(&eth, connected, [this](){opened_ = true; piCoutObj << "connected"; tcp.sendStart();});
CONNECTL(&eth, disconnected, [this](bool){
piCoutObj << "disconnected";
eth.stopThreadedRead();
eth.softStopThreadedRead();
opened_ = false;
ping_timer.stop(false);
piMSleep(100);