| Index: remoting/jingle_glue/jingle_thread.cc
|
| diff --git a/remoting/jingle_glue/jingle_thread.cc b/remoting/jingle_glue/jingle_thread.cc
|
| index 00370668acb38e22b7ff689f2ab12b4601beaf7f..f13477ec73901d97cb0ec8509ad647b266f7d325 100644
|
| --- a/remoting/jingle_glue/jingle_thread.cc
|
| +++ b/remoting/jingle_glue/jingle_thread.cc
|
| @@ -92,6 +92,9 @@ void JingleThread::Stop() {
|
| // queue before exiting. Thread::Stop() would not do that.
|
| Post(this, kStopMessageId);
|
| stopped_event_.Wait();
|
| +
|
| + // This will wait until the thread is actually finished.
|
| + Thread::Stop();
|
| }
|
|
|
| MessageLoop* JingleThread::message_loop() {
|
|
|