Skip to content

Commit 71b6ab6

Browse files
committed
Small changes
1 parent 4537b18 commit 71b6ab6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/jsflow-tracker.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ jsFlowTracker.prototype._onData = function (payload, from) {
134134
offer = signalObject;
135135
if (peer.readyForIce) {
136136
console.log('self: ', self)
137-
processStoredCandidates(self,peer)
137+
processStoredCandidates(self,from)
138138
}
139139
var params = {
140140
info_hash: self.client._infoHash.toString('base64'),
@@ -235,8 +235,9 @@ jsFlowTracker.prototype._sendAnnounce = function (params) {
235235
jsFlow.messageUser(params.trackerid, params, 'announce')
236236
}
237237

238-
function processStoredCandidates (tracker, peer) {
238+
function processStoredCandidates (tracker, from) {
239239
console.log("Processing stored candidates.")
240+
var peer = self._peers[from]
240241
tracker.storeIce.forEach(function(candidate){
241242
if(peer) {
242243
peer.signal(candidate)

0 commit comments

Comments
 (0)