Fixed issue with context being lost, causing invalid mDNS discoveries

This commit is contained in:
R. Aidan Campbell
2016-08-29 16:00:28 -04:00
parent 1c647c0327
commit b215f19f6a
2 changed files with 8 additions and 8 deletions

View File

@@ -119,13 +119,13 @@ NvHTTP.prototype = {
this._consecutivePollFailures = 0;
this.online = true;
onComplete();
onComplete(this);
}.bind(this), function() {
if (++this._consecutivePollFailures >= 3) {
this.online = false;
}
onComplete();
onComplete(this);
}.bind(this));
},