mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 960790: Fix P2P presence discovery handling. r=allstars.chh
This commit is contained in:
parent
8c1226a6c7
commit
513bddc828
@ -368,6 +368,7 @@ NfcWorker[NFC_NOTIFICATION_INITIALIZED] = function NFC_NOTIFICATION_INITIALIZED
|
||||
NfcWorker[NFC_NOTIFICATION_TECH_DISCOVERED] = function NFC_NOTIFICATION_TECH_DISCOVERED() {
|
||||
debug("NFC_NOTIFICATION_TECH_DISCOVERED");
|
||||
let techList = [];
|
||||
let records = null;
|
||||
|
||||
let sessionId = Buf.readInt32();
|
||||
let techCount = Buf.readInt32();
|
||||
@ -384,7 +385,9 @@ NfcWorker[NFC_NOTIFICATION_TECH_DISCOVERED] = function NFC_NOTIFICATION_TECH_DIS
|
||||
}
|
||||
|
||||
let ndefMsgCount = Buf.readInt32();
|
||||
let records = this.unMarshallNdefMessage();
|
||||
if (ndefMsgCount > 0) {
|
||||
records = this.unMarshallNdefMessage();
|
||||
}
|
||||
this.sendDOMMessage({type: "techDiscovered",
|
||||
sessionId: sessionId,
|
||||
techList: techList,
|
||||
|
Loading…
Reference in New Issue
Block a user