diff options
author | weitaosu@chromium.org <weitaosu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-31 19:13:28 +0000 |
---|---|---|
committer | weitaosu@chromium.org <weitaosu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-31 19:13:28 +0000 |
commit | 86714210722481e03f470858e0bec14e1548c618 (patch) | |
tree | e9e14659993c66d16dd27f9e7bb7d122165f4bda /remoting/host/remoting_me2me_host.cc | |
parent | 2cc2c3a4aa25cb59ac042c7fdab3a2037961237b (diff) | |
download | chromium_src-86714210722481e03f470858e0bec14e1548c618.zip chromium_src-86714210722481e03f470858e0bec14e1548c618.tar.gz chromium_src-86714210722481e03f470858e0bec14e1548c618.tar.bz2 |
Don't send offline status before the host has started.
BUG=264867
Review URL: https://chromiumcodereview.appspot.com/21276005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214797 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/remoting_me2me_host.cc')
-rw-r--r-- | remoting/host/remoting_me2me_host.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc index f2bbac0..8ee29f8 100644 --- a/remoting/host/remoting_me2me_host.cc +++ b/remoting/host/remoting_me2me_host.cc @@ -1009,6 +1009,10 @@ void HostProcess::ShutdownHost(HostExitCodes exit_code) { switch (state_) { case HOST_INITIALIZING: + state_ = HOST_STOPPING; + ShutdownOnNetworkThread(); + break; + case HOST_STARTED: state_ = HOST_STOPPING; host_status_sender_->SendOfflineStatus(exit_code); |