In dealloc(), only close the socket if fd != -1.
1 file changed