summaryrefslogtreecommitdiffstats
path: root/remoting/host/chromoting_host.cc
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/host/chromoting_host.cc')
-rw-r--r--remoting/host/chromoting_host.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/remoting/host/chromoting_host.cc b/remoting/host/chromoting_host.cc
index 33169a4..917edb0 100644
--- a/remoting/host/chromoting_host.cc
+++ b/remoting/host/chromoting_host.cc
@@ -137,8 +137,8 @@ void ChromotingHost::Shutdown(Task* shutdown_task) {
base::AutoLock auto_lock(lock_);
if (state_ == kInitial || state_ == kStopped) {
// Nothing to do if we are not started.
- base::ScopedTaskRunner run_task(shutdown_task);
state_ = kStopped;
+ context_->main_message_loop()->PostTask(FROM_HERE, shutdown_task);
return;
}
if (shutdown_task)