Fixed the polling method in the socket.