зеркало из https://github.com/mozilla/gecko-dev.git
Bug 900450 - Reset UDP socket to allow re-initialization. r=dougt
This commit is contained in:
Родитель
117e2b871f
Коммит
814dc02786
|
@ -295,6 +295,8 @@ this.PushService = {
|
|||
// online, it is likely that these statements will be no-ops.
|
||||
if (this._udpServer) {
|
||||
this._udpServer.close();
|
||||
// Set to null since this is checked in _listenForUDPWakeup()
|
||||
this._udpServer = null;
|
||||
}
|
||||
|
||||
this._shutdownWS();
|
||||
|
@ -504,6 +506,7 @@ this.PushService = {
|
|||
|
||||
if (this._udpServer) {
|
||||
this._udpServer.close();
|
||||
this._udpServer = null;
|
||||
}
|
||||
|
||||
// All pending requests (ideally none) are dropped at this point. We
|
||||
|
|
Загрузка…
Ссылка в новой задаче