diff --git a/src/org/kde/kdeconnect/Device.kt b/src/org/kde/kdeconnect/Device.kt index 9c53203c..bc07a56a 100644 --- a/src/org/kde/kdeconnect/Device.kt +++ b/src/org/kde/kdeconnect/Device.kt @@ -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) } } }