Skip to content

Commit

Permalink
Solves an issue where sendDataTasks are stuck because there is more t…
Browse files Browse the repository at this point in the history
…han 1 yet the IF condition that fires them off is checking exactly for 1. This should be a check for >= 1 which is what this commit changes. See rhummelmose#77
  • Loading branch information
ericwastaken committed Oct 15, 2017
1 parent bfd0fc1 commit 3e197fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/BKPeer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public class BKPeer {
}
let sendDataTask = BKSendDataTask(data: data, destination: remotePeer, completionHandler: completionHandler)
sendDataTasks.append(sendDataTask)
if sendDataTasks.count == 1 {
if sendDataTasks.count >= 1 {
processSendDataTasks()
}
}
Expand Down

0 comments on commit 3e197fd

Please sign in to comment.