diff options
| author | salmonik <raisersoft@proton.me> | 2026-05-26 06:38:18 +0200 |
|---|---|---|
| committer | salmonik <raisersoft@proton.me> | 2026-05-26 06:38:18 +0200 |
| commit | 27f75fd8d3a6cc40c668b7251ed4d9c32d91fa6c (patch) | |
| tree | 254a77bd8b39fdbcb2584bc2ec6d69cd80636fde /src/daemon.rs | |
| parent | Fix metadata extraction for symphonia 0.6 and add Albums shuffle mode (diff) | |
| download | rsplayer-27f75fd8d3a6cc40c668b7251ed4d9c32d91fa6c.tar.gz rsplayer-27f75fd8d3a6cc40c668b7251ed4d9c32d91fa6c.zip | |
bin size optimizations and queue stopping at the end of it
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 { |
