diff options
Diffstat (limited to 'commands/mode/noquit.go')
-rw-r--r-- | commands/mode/noquit.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/commands/mode/noquit.go b/commands/mode/noquit.go index ad664165..92f83ee8 100644 --- a/commands/mode/noquit.go +++ b/commands/mode/noquit.go @@ -19,8 +19,5 @@ func NoQuitDone() { // QuitAllowed checks if aerc can exit normally (only when all goroutines that // requested a no-quit mode were done and called the NoQuitDone() function) func QuitAllowed() bool { - if atomic.LoadInt32(&noquit) > 0 { - return false - } - return true + return atomic.LoadInt32(&noquit) <= 0 } |