Bug 1050692 - [NFC] B2G NFC: peer.sendNDEF always return Bad Session ID. r=dimi

This commit is contained in:
Yoshi Huang 2014-08-08 17:22:28 +08:00
parent e8fd98cca0
commit 9402e01151

View File

@ -212,7 +212,7 @@ mozNfc.prototype = {
return null;
}
if (!this.nfcObject) {
if (!this.nfcObject || this.nfcObject.token != sessionToken) {
let obj = new MozNFCPeer();
obj.initialize(this._window, sessionToken);
this.nfcObject = obj;