mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-30 13:47:41 +00:00
Simplify for loop
This commit is contained in:
@@ -315,8 +315,8 @@ class Device : PacketReceiver {
|
||||
synchronized(sendChannel) {
|
||||
if (sendCoroutine == null) {
|
||||
sendCoroutine = CoroutineScope(Dispatchers.IO).launch {
|
||||
for (item in sendChannel) {
|
||||
sendPacketBlocking(item.np, item.callback)
|
||||
for ((np, callback) in sendChannel) {
|
||||
sendPacketBlocking(np, callback)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user