We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 163b508 + d83f338 commit 30e59b9Copy full SHA for 30e59b9
stormfront/src/main/kotlin/warlockfe/warlock3/stormfront/network/StormfrontClient.kt
@@ -115,6 +115,7 @@ import java.net.URL
115
import java.nio.charset.Charset
116
import java.util.*
117
import java.util.concurrent.ConcurrentHashMap
118
+import kotlin.collections.set
119
import kotlin.math.max
120
121
const val scriptCommandPrefix = '.'
@@ -469,10 +470,10 @@ class StormfrontClient(
469
470
471
is StormfrontStreamWindowEvent -> {
472
val window = event.window
- addWindow(window)
473
- if (window.id != "main") {
+ if (windows.get(event.window.id) != null && window.id != "main") {
474
sendCommandDirect("_swclose s${event.window.id}")
475
}
476
+ addWindow(window)
477
478
479
is StormfrontActionEvent -> {
0 commit comments