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 82e2156007
commit e80897df24

View File

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