Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1232)

Unified Diff: remoting/webapp/host_controller.js

Issue 10535070: Don't deregister the host if it wasn't stopped. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/host_controller.js
diff --git a/remoting/webapp/host_controller.js b/remoting/webapp/host_controller.js
index 2236c6379126f215d5ccb97bc883a85a55dd00ca..5f45dae161d99727aa4cec906c57b0d0f414d23d 100644
--- a/remoting/webapp/host_controller.js
+++ b/remoting/webapp/host_controller.js
@@ -242,7 +242,8 @@ remoting.HostController.prototype.stop = function(callback) {
/** @param {remoting.HostController.AsyncResult} result */
function onStopped(result) {
- if (that.localHost && that.localHost.hostId) {
+ if (result == remoting.HostController.AsyncResult.OK &&
+ that.localHost && that.localHost.hostId) {
remoting.HostList.unregisterHostById(that.localHost.hostId);
}
callback(result);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698