diff options
author | Max Kellermann <max@musicpd.org> | 2017-02-25 10:16:51 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-02-25 10:20:07 +0100 |
commit | e3ee60e7af64819530440c5a651ab76f56f29bbe (patch) | |
tree | f5bf9687e65fc4b7beb1a2a21a6065a300283350 /src/command | |
parent | 05b8ddac4c9318bd8f9851d0e5a58edd7eb9f340 (diff) |
command/storage: use Instance::EmitIdle()
These events are relevant for all partitions.
Diffstat (limited to 'src/command')
-rw-r--r-- | src/command/StorageCommands.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/command/StorageCommands.cxx b/src/command/StorageCommands.cxx index 2eaba21b3..5ea53fd67 100644 --- a/src/command/StorageCommands.cxx +++ b/src/command/StorageCommands.cxx @@ -206,7 +206,7 @@ handle_mount(Client &client, Request args, Response &r) } composite.Mount(local_uri, storage); - client.partition.EmitIdle(IDLE_MOUNT); + instance.EmitIdle(IDLE_MOUNT); #ifdef ENABLE_DATABASE Database *_db = instance.database; @@ -222,7 +222,7 @@ handle_mount(Client &client, Request args, Response &r) // TODO: call Instance::OnDatabaseModified()? // TODO: trigger database update? - client.partition.EmitIdle(IDLE_DATABASE); + instance.EmitIdle(IDLE_DATABASE); } #endif @@ -262,7 +262,7 @@ handle_unmount(Client &client, Request args, Response &r) if (db.Unmount(local_uri)) // TODO: call Instance::OnDatabaseModified()? - client.partition.EmitIdle(IDLE_DATABASE); + instance.EmitIdle(IDLE_DATABASE); } #endif @@ -271,7 +271,7 @@ handle_unmount(Client &client, Request args, Response &r) return CommandResult::ERROR; } - client.partition.EmitIdle(IDLE_MOUNT); + instance.EmitIdle(IDLE_MOUNT); return CommandResult::OK; } |