mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-10 13:54:27 +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,
|
||||
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;
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user