mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-10 22:09:32 +00:00
Bug 881601 - Don't close the listener if it was never opened, r=wlach
This commit is contained in:
parent
a9a669f6db
commit
520dbc04a3
@ -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;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user