new PIClientServer::ClientBase::stopAndWait() method for blocking stop read.
PIClientServer::ClientBase::close() now non-blocking
This commit is contained in:
@@ -44,7 +44,10 @@ class TestServerClient
|
||||
using Base = TestClientBase<WriteSize, WithPong>;
|
||||
|
||||
public:
|
||||
~TestServerClient() { close(); }
|
||||
~TestServerClient() {
|
||||
close();
|
||||
stopAndWait();
|
||||
}
|
||||
|
||||
private:
|
||||
void readed(PIByteArray data) override { Base::readInternal(data); }
|
||||
@@ -66,7 +69,10 @@ class TestClient
|
||||
using Base = TestClientBase<WriteSize, WithPong>;
|
||||
|
||||
public:
|
||||
~TestClient() { close(); }
|
||||
~TestClient() {
|
||||
close();
|
||||
stopAndWait();
|
||||
}
|
||||
|
||||
private:
|
||||
void readed(PIByteArray data) override { Base::readInternal(data); }
|
||||
|
||||
Reference in New Issue
Block a user