Bug 928223 - 0001. Add function to perform setup for listen socket. r=qDot echou vicamo yoshi

This commit is contained in:
Chuck Lee
2013-10-25 10:00:22 +08:00
parent 57bf2ca019
commit f3813df219
6 changed files with 43 additions and 1 deletions

View File

@@ -521,6 +521,14 @@ UnixSocketImpl::Accept()
return;
}
if (!mConnector->SetUpListenSocket(mFd)) {
NS_WARNING("Could not set up listen socket!");
nsRefPtr<OnSocketEventTask> t =
new OnSocketEventTask(this, OnSocketEventTask::CONNECT_ERROR);
NS_DispatchToMainThread(t);
return;
}
}
SetUpIO();