Skip to content

Commit

Permalink
fix: exit correctly when removing message (julienXX#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
jefeweisen authored and julienXX committed Oct 29, 2017
1 parent 33d0cf4 commit ea05db1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Terminal Notifier/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,9 @@ - (void)applicationDidFinishLaunching:(NSNotification *)notification;

if (remove) {
[self removeNotificationWithGroupID:remove];
if (message == nil) exit(0);
if (message == nil || ([message length] == 0)) {
exit(0);
}
}

if (message) {
Expand Down

0 comments on commit ea05db1

Please sign in to comment.