Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(200)

Unified Diff: ppapi/shared_impl/ppb_audio_shared.cc

Issue 10868034: Fix back-to-back StartPlayback/StopPlayback issue in PPAPI IPC proxy (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ppapi/tests/test_audio.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/ppb_audio_shared.cc
===================================================================
--- ppapi/shared_impl/ppb_audio_shared.cc (revision 153270)
+++ ppapi/shared_impl/ppb_audio_shared.cc (working copy)
@@ -29,6 +29,9 @@
}
PPB_Audio_Shared::~PPB_Audio_Shared() {
+ // Shut down the socket to escape any hanging |Receive|s.
+ if (socket_.get())
+ socket_->Shutdown();
StopThread();
}
@@ -105,10 +108,7 @@
}
void PPB_Audio_Shared::StopThread() {
- // Shut down the socket to escape any hanging |Receive|s.
- if (socket_.get())
- socket_->Shutdown();
- #if !defined(OS_NACL)
+#if !defined(OS_NACL)
if (audio_thread_.get()) {
audio_thread_->Join();
audio_thread_.reset();
« no previous file with comments | « no previous file | ppapi/tests/test_audio.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698