diff options
Diffstat (limited to 'remoting/host/chromoting_host.cc')
-rw-r--r-- | remoting/host/chromoting_host.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/remoting/host/chromoting_host.cc b/remoting/host/chromoting_host.cc index ace4f71..36a1b45 100644 --- a/remoting/host/chromoting_host.cc +++ b/remoting/host/chromoting_host.cc @@ -547,8 +547,8 @@ void ChromotingHost::ProcessPreAuthentication( void ChromotingHost::ShowDisconnectWindow(bool show, const std::string& username) { - if (!context_->IsUIThread()) { - context_->PostToUIThread( + if (context_->ui_message_loop() != MessageLoop::current()) { + context_->ui_message_loop()->PostTask( FROM_HERE, NewRunnableMethod(this, &ChromotingHost::ShowDisconnectWindow, show, username)); |