0

Only close the sync socket if it is non-NULL. This fixes

a NaCl page reload / surf-away regression.
BUG=NaCl ppapi audio proxy
TEST=native_client/tests/ppapi_example_audio

Review URL: http://codereview.chromium.org/6300011

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72099 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
nfullagar@google.com
2011-01-21 03:30:19 +00:00
parent 02aff8a2e7
commit f4452670c8

@ -18,7 +18,8 @@ AudioImpl::AudioImpl()
AudioImpl::~AudioImpl() {
// Closing the socket causes the thread to exit - wait for it.
socket_->Close();
if (socket_.get())
socket_->Close();
if (audio_thread_.get()) {
audio_thread_->Join();
audio_thread_.reset();