Commit d83f338 1 parent 163b508 commit d83f338 Copy full SHA for d83f338
File tree 1 file changed +3
-2
lines changed
stormfront/src/main/kotlin/warlockfe/warlock3/stormfront/network
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ import java.net.URL
115
115
import java.nio.charset.Charset
116
116
import java.util.*
117
117
import java.util.concurrent.ConcurrentHashMap
118
+ import kotlin.collections.set
118
119
import kotlin.math.max
119
120
120
121
const val scriptCommandPrefix = ' .'
@@ -469,10 +470,10 @@ class StormfrontClient(
469
470
470
471
is StormfrontStreamWindowEvent -> {
471
472
val window = event.window
472
- addWindow(window)
473
- if (window.id != " main" ) {
473
+ if (windows.get(event.window.id) != null && window.id != " main" ) {
474
474
sendCommandDirect(" _swclose s${event.window.id} " )
475
475
}
476
+ addWindow(window)
476
477
}
477
478
478
479
is StormfrontActionEvent -> {
You can’t perform that action at this time.
0 commit comments