2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 05:37:43 +00:00

Simplify for loop

This commit is contained in:
Albert Vaca Cintora 2024-06-10 13:57:20 +02:00
parent 4e1e2931e2
commit ca6ea5cb1a
No known key found for this signature in database

View File

@ -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)
}
}
}