From db567f2bfd128fad15e389356dd99eebda704823 Mon Sep 17 00:00:00 2001 From: "sergeyu@chromium.org" Date: Tue, 12 Apr 2011 23:28:59 +0000 Subject: Implement P2P Transport Dev using P2PTransportImpl. BUG=None TEST=Unittests Review URL: http://codereview.chromium.org/6823021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81331 0039d316-1c4b-4281-b951-d872f2087c98 --- jingle/glue/thread_wrapper.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'jingle/glue/thread_wrapper.cc') diff --git a/jingle/glue/thread_wrapper.cc b/jingle/glue/thread_wrapper.cc index fe26094..979064b 100644 --- a/jingle/glue/thread_wrapper.cc +++ b/jingle/glue/thread_wrapper.cc @@ -30,6 +30,7 @@ JingleThreadWrapper::JingleThreadWrapper(MessageLoop* message_loop) DCHECK_EQ(message_loop_, MessageLoop::current()); talk_base::ThreadManager::SetCurrent(this); + talk_base::MessageQueueManager::Instance()->Add(this); message_loop_->AddDestructionObserver(this); } @@ -38,6 +39,7 @@ JingleThreadWrapper::~JingleThreadWrapper() { void JingleThreadWrapper::WillDestroyCurrentMessageLoop() { talk_base::ThreadManager::SetCurrent(NULL); + talk_base::MessageQueueManager::Instance()->Remove(this); message_loop_->RemoveDestructionObserver(this); delete this; } -- cgit v1.1