summaryrefslogtreecommitdiffstats
path: root/base/thread.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/thread.cc')
-rw-r--r--base/thread.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/base/thread.cc b/base/thread.cc
index 9bc81a4..fd076a4 100644
--- a/base/thread.cc
+++ b/base/thread.cc
@@ -131,6 +131,9 @@ 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() {