fix crash

This commit is contained in:
neon443
2025-09-03 20:50:19 +01:00
parent 2331c55abf
commit d39f176f72
2 changed files with 2 additions and 2 deletions

View File

@@ -53,11 +53,11 @@ struct ShellTabView: View {
//header //header
HStack(alignment: .center, spacing: 10) { HStack(alignment: .center, spacing: 10) {
Button() { Button() {
dismiss()
for session in container.sessions.values { for session in container.sessions.values {
session.handler.disconnect() session.handler.disconnect()
session.handler.cleanup() session.handler.cleanup()
} }
dismiss()
} label: { } label: {
TrafficLightRed() TrafficLightRed()
} }