some fixes

This commit is contained in:
2024-09-16 23:32:01 +03:00
parent 43bd1d8550
commit 97aad47a21
3 changed files with 9 additions and 3 deletions

View File

@@ -80,8 +80,9 @@ void PIClientServer::ClientBase::init() {
void PIClientServer::ClientBase::destroy() {
can_write = false;
write_mutex.lock();
close();
piDeleteSafety(tcp);
write_mutex.unlock();
// piCout << "Destroyed";
}