PITimer remove wait in stop, waitForFinish
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user