Crashfixes.

This commit is contained in:
Koen J 2025-05-03 17:35:17 +02:00
commit e047ab5684
2 changed files with 4 additions and 4 deletions

View file

@ -279,7 +279,7 @@ fun <T> findNewIndex(originalArr: List<T>, newArr: List<T>, item: T): Int{
}
}
if(newIndex < 0)
return originalArr.size;
return newArr.size;
else
return newIndex;
}

View file

@ -129,9 +129,9 @@ class SyncSession : IAuthorizable {
fun close() {
synchronized(_channels) {
_channels.forEach { it.close() }
_channels.clear()
}
_channels.toTypedArray()
}.forEach { it.close() }
_onClose(this)
}