diff options
Diffstat (limited to 'base')
-rw-r--r-- | base/thread.cc | 3 | ||||
-rw-r--r-- | base/thread_unittest.cc | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/base/thread.cc b/base/thread.cc index fd076a4..9bc81a4 100644 --- a/base/thread.cc +++ b/base/thread.cc @@ -131,9 +131,6 @@ void Thread::StopSoon() { DCHECK(message_loop_); message_loop_->PostTask(FROM_HERE, new ThreadQuitTask()); - - // The thread can't receive messages anymore. - message_loop_ = NULL; } void Thread::ThreadMain() { diff --git a/base/thread_unittest.cc b/base/thread_unittest.cc index c1971c2..f11cb8d 100644 --- a/base/thread_unittest.cc +++ b/base/thread_unittest.cc @@ -97,8 +97,8 @@ TEST_F(ThreadTest, StopSoon) { EXPECT_TRUE(a.Start()); EXPECT_TRUE(a.message_loop()); a.StopSoon(); - EXPECT_FALSE(a.message_loop()); a.StopSoon(); + a.Stop(); EXPECT_FALSE(a.message_loop()); } |