Bug 881601 - Don't close the listener if it was never opened, r=wlach

This commit is contained in:
Jonathan Griffin 2013-06-13 10:04:48 -07:00
parent a9a669f6db
commit 520dbc04a3

View File

@ -58,6 +58,7 @@ MarionetteComponent.prototype = {
appName: Services.appinfo.name, appName: Services.appinfo.name,
enabled: false, enabled: false,
finalUiStartup: false, finalUiStartup: false,
_marionetteServer: null,
onSocketAccepted: function mc_onSocketAccepted(aSocket, aTransport) { onSocketAccepted: function mc_onSocketAccepted(aSocket, aTransport) {
this.logger.info("onSocketAccepted for Marionette dummy socket"); this.logger.info("onSocketAccepted for Marionette dummy socket");
@ -152,7 +153,9 @@ MarionetteComponent.prototype = {
}, },
uninit: function mc_uninit() { uninit: function mc_uninit() {
this._marionetteServer.closeListener(); if (this._marionetteServer) {
this._marionetteServer.closeListener();
}
this._loaded = false; this._loaded = false;
}, },