diff options
Diffstat (limited to 'src/daemon.rs')
| -rw-r--r-- | src/daemon.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/daemon.rs b/src/daemon.rs index b18ecc9..48330ae 100644 --- a/src/daemon.rs +++ b/src/daemon.rs | |||
| @@ -346,6 +346,7 @@ pub fn start_daemon() -> Result<(), Box<dyn std::error::Error>> { | |||
| 346 | notification::notify_error("Playback failed"); | 346 | notification::notify_error("Playback failed"); |
| 347 | } else { | 347 | } else { |
| 348 | notification::notify_queue_ended(); | 348 | notification::notify_queue_ended(); |
| 349 | q.clear(); | ||
| 349 | } | 350 | } |
| 350 | } | 351 | } |
| 351 | } | 352 | } |
| @@ -600,6 +601,7 @@ fn process_command( | |||
| 600 | } else { | 601 | } else { |
| 601 | audio.stop(); | 602 | audio.stop(); |
| 602 | notification::notify_queue_ended(); | 603 | notification::notify_queue_ended(); |
| 604 | q.clear(); | ||
| 603 | "Queue empty, stopped\n".to_string() | 605 | "Queue empty, stopped\n".to_string() |
| 604 | } | 606 | } |
| 605 | } else { | 607 | } else { |
