Commit a4dd7063 authored by Dorian Zedler's avatar Dorian Zedler

close active sockets on delete

parent b0d4c5b3
......@@ -19,6 +19,7 @@ SocketServer::SocketServer() : QObject()
SocketServer::~SocketServer(){
for(int i=0; i<this->clients.length(); i++){
this->clients[i].socket->close();
delete this->clients[i].socket;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment