dev-hotfix-v2.1 #5

Merged
Thiflict merged 4 commits from dev-hotfix-v2.1 into master 2026-04-20 16:22:14 +00:00
Showing only changes of commit 9c565598f9 - Show all commits

View File

@@ -274,7 +274,11 @@ class USBVirusScanner {
currentState = SystemState.IDLE
} catch (e: Exception) {
} catch (e: kotlinx.coroutines.CancellationException) {
currentState = SystemState.IDLE
println(if (isDebug) "Программа получила CancellationException. Возврат к состоянию IDLE." else "")
}
catch (e: Exception) {
println(if (isDebug) "❌ Критическая ошибка: ${e.message}" else "")
e.printStackTrace()
currentState = SystemState.ERROR
@@ -649,7 +653,8 @@ fun main(args: Array<String>) {
}
} catch (e: Exception) {
println(if (isDebug) "❌ Критическая ошибка: ${e.message}" else "")
e.printStackTrace()
if (isDebug) e.printStackTrace()
if (isDebug) println("Общий Exception")
scanner.shutdown()
exitProcess(1)
}