diff --git a/web/chromecom.js b/web/chromecom.js index 23d59e595..6823dd3a1 100644 --- a/web/chromecom.js +++ b/web/chromecom.js @@ -275,7 +275,7 @@ var ChromeCom = (function ChromeComClosure() { function onDisconnect() { // When the connection fails, ignore the error and call the callback. port = null; - onCompleted(); + callback(); } function onCompleted() { port.onDisconnect.removeListener(onDisconnect);