Bug 1180596 - Part 1 - make add/remove/get devices available without init. r=fabrice

This commit is contained in:
Liang-Heng Chen 2015-07-21 02:28:00 +02:00
parent 137ab7918d
commit b6479ebe5d

View File

@ -26,7 +26,7 @@ function TCPPresentationServer() {
this._id = null;
this._port = 0;
this._serverSocket = null;
this._devices = null;
this._devices = new Map(); // id -> device
}
TCPPresentationServer.prototype = {
@ -78,7 +78,6 @@ TCPPresentationServer.prototype = {
*/
this.id = aId;
this._port = this._serverSocket.port;
this._devices = new Map(); // id -> device
},
get id() {
@ -251,7 +250,6 @@ TCPPresentationServer.prototype = {
this._id = null;
this._port = 0;
this._devices && this._devices.clear();
this._devices = null;
},
classID: Components.ID("{f4079b8b-ede5-4b90-a112-5b415a931deb}"),