Merge pull request #6520 from Rob--W/crx-chromecom-fix

[CRX] Call callback instead of onCompleted
This commit is contained in:
Jonas Jenwald 2015-10-12 22:18:27 +02:00
commit 6019b099fe

View File

@ -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);