[Loader] Fixed possible deadlock

This commit is contained in:
Maschell 2018-04-04 14:27:04 +02:00
parent 2c311aea66
commit 720762d891

View File

@ -30,7 +30,7 @@ TcpReceiver::TcpReceiver(int port)
TcpReceiver::~TcpReceiver() {
exitRequested = true;
if(serverSocket > 0) {
if(serverSocket >= 0) {
shutdown(serverSocket, SHUT_RDWR);
}
}