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