mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 980846 - Second wakeup message does not send the port. r=nsm.nikhil
This commit is contained in:
parent
6aaa1b33ae
commit
cb5a576e82
@ -1291,8 +1291,7 @@ this.PushService = {
|
||||
this._retryFailCount = 0;
|
||||
|
||||
// Openning an available UDP port.
|
||||
// _listenForUDPWakeup will return the opened port number
|
||||
this._udpPort = this._listenForUDPWakeup();
|
||||
this._listenForUDPWakeup();
|
||||
|
||||
let data = {
|
||||
messageType: "hello",
|
||||
@ -1306,7 +1305,7 @@ this.PushService = {
|
||||
// Hostport is apparently a thing.
|
||||
data["wakeup_hostport"] = {
|
||||
ip: networkState.ip,
|
||||
port: this._udpPort
|
||||
port: this._udpServer && this._udpServer.port
|
||||
};
|
||||
|
||||
data["mobilenetwork"] = {
|
||||
@ -1449,7 +1448,7 @@ this.PushService = {
|
||||
* reconnect the WebSocket and get the actual data.
|
||||
*/
|
||||
onPacketReceived: function(aServ, aMessage) {
|
||||
debug("Recv UDP datagram on port: " + this._udpPort);
|
||||
debug("Recv UDP datagram on port: " + this._udpServer.port);
|
||||
this._beginWSSetup();
|
||||
},
|
||||
|
||||
@ -1461,7 +1460,7 @@ this.PushService = {
|
||||
*/
|
||||
onStopListening: function(aServ, aStatus) {
|
||||
debug("UDP Server socket was shutdown. Status: " + aStatus);
|
||||
this._udpPort = undefined;
|
||||
this._udpServer = undefined;
|
||||
this._beginWSSetup();
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user