Fixes an issue with the SocketServer
The issue would cause the SocketServer to stop listening for incoming connections.