Fix OnClose(socket, NO_ERROR) compile error on Linux.

Merge Peerconnection_client_dev with Peerconnection_client.

BUG=
TEST=

Review URL: http://webrtc-codereview.appspot.com/215002

git-svn-id: http://webrtc.googlecode.com/svn/trunk@720 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
perkj@webrtc.org
2011-10-10 11:15:35 +00:00
parent 1843664f2a
commit 73ba4160f6
3 changed files with 24 additions and 20 deletions

View File

@@ -291,7 +291,7 @@ bool PeerConnectionClient::ReadIntoBuffer(talk_base::AsyncSocket* socket,
socket->Close();
// Since we closed the socket, there was no notification delivered
// to us. Compensate by letting ourselves know.
OnClose(socket, NO_ERROR);
OnClose(socket, 0);
}
} else {
// We haven't received everything. Just continue to accept data.