[CRX] Call callback instead of onCompleted

This commit is contained in:
Rob Wu 2015-10-11 17:35:16 +02:00
parent 3eaeacfe19
commit 7e345b223c

View File

@ -275,7 +275,7 @@ var ChromeCom = (function ChromeComClosure() {
function onDisconnect() { function onDisconnect() {
// When the connection fails, ignore the error and call the callback. // When the connection fails, ignore the error and call the callback.
port = null; port = null;
onCompleted(); callback();
} }
function onCompleted() { function onCompleted() {
port.onDisconnect.removeListener(onDisconnect); port.onDisconnect.removeListener(onDisconnect);