PITimer remove wait in stop, waitForFinish

This commit is contained in:
Бычков Андрей
2022-11-10 15:26:19 +03:00
parent 3d7e845213
commit d46f1a137a
3 changed files with 22 additions and 57 deletions

View File

@@ -40,7 +40,7 @@ PICloudServer::PICloudServer(const PIString & path, PIIODevice::DeviceMode mode)
delete c;
}
opened_ = false;
ping_timer.stop(false);
ping_timer.stop();
piMSleep(100);
});
CONNECTL(&ping_timer, tickEvent, [this] (void *, int){
@@ -80,7 +80,7 @@ bool PICloudServer::openDevice() {
ping_timer.start(5000);
return true;
} else {
ping_timer.stop(false);
ping_timer.stop();
eth.close();
return false;
}
@@ -90,7 +90,7 @@ bool PICloudServer::openDevice() {
bool PICloudServer::closeDevice() {
//piCoutObj << "closeDevice" << this;
eth.stopAndWait();
ping_timer.stop(false);
ping_timer.stop();
eth.close();
for (auto c : clients_) {
delete c;