diff --git a/src/main/java/de/bixilon/minosoft/protocol/network/session/play/PlaySession.kt b/src/main/java/de/bixilon/minosoft/protocol/network/session/play/PlaySession.kt index dbead77fa..8d6f287b3 100644 --- a/src/main/java/de/bixilon/minosoft/protocol/network/session/play/PlaySession.kt +++ b/src/main/java/de/bixilon/minosoft/protocol/network/session/play/PlaySession.kt @@ -1,6 +1,6 @@ /* * Minosoft - * Copyright (C) 2020-2024 Moritz Zwerger + * Copyright (C) 2020-2025 Moritz Zwerger * * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. * @@ -119,7 +119,9 @@ class PlaySession( init { var errored = false this::error.observe(this) { - if (errored || it == null) return@observe + if (it == null) return@observe + Log.log(LogMessageType.GENERAL, LogLevels.FATAL) { it } + if (errored) return@observe ERRORED_CONNECTIONS += this cleanupErrors() state = PlaySessionStates.ERROR