You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code in BKPeer.swift, sendData is as follows after a task is added to the sendDataTasks array
if sendDataTasks.count == 1 {
processSendDataTasks()
}
This processes the tasks if there's exactly 1 task in that array. Unfortunately, when you have multiple peers and/or you're sending a several data tasks, the array will grow past 1 and the processSendDataTasks() is never called.
The code should be:
if sendDataTasks.count >= 1 {
processSendDataTasks()
}
I'll follow this with a PR to address it.
Thanks,
Eric.
The text was updated successfully, but these errors were encountered:
ericwastaken
added a commit
to ericwastaken/BluetoothKit
that referenced
this issue
Oct 15, 2017
…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
The code in BKPeer.swift,
sendData
is as follows after a task is added to the sendDataTasks arrayThis processes the tasks if there's exactly 1 task in that array. Unfortunately, when you have multiple peers and/or you're sending a several data tasks, the array will grow past 1 and the
processSendDataTasks()
is never called.The code should be:
I'll follow this with a PR to address it.
Thanks,
Eric.
The text was updated successfully, but these errors were encountered: