Bug 841648 - Clear mIOLoop when the UnixSocketImpl instance changes its target file descriptor, f=tzimmerman, r=qdot

This commit is contained in:
Eric Chou
2013-03-02 12:11:01 +08:00
parent 8f565370fd
commit f3cdeb4552

View File

@@ -728,6 +728,7 @@ UnixSocketImpl::OnFileCanReadWithoutBlocking(int aFd)
mWriteWatcher.StopWatchingFileDescriptor();
mFd.reset(client_fd);
mIOLoop = nullptr;
nsRefPtr<OnSocketEventTask> t =
new OnSocketEventTask(this, OnSocketEventTask::CONNECT_SUCCESS);