Skip to content

Commit

Permalink
fix(plc4xtools): set shutdown flag early to avoid corrupted files
Browse files Browse the repository at this point in the history
  • Loading branch information
sruehl committed Aug 10, 2022
1 parent 9a1fb1c commit dde3b01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plc4go/tools/plc4xbrowser/ui/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@ func Shutdown() {
for _, connection := range connections {
connection.Close()
}
saveConfig()
hasShutdown = true
saveConfig()
}
2 changes: 1 addition & 1 deletion plc4go/tools/plc4xpcapanalyzer/ui/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@ func Shutdown() {
if hasShutdown {
return
}
saveConfig()
hasShutdown = true
saveConfig()
}

0 comments on commit dde3b01

Please sign in to comment.