make sure we don't wait for callbacks if the socket is not writable