mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-15 14:42:30 +00:00
Add 'event.system.startup_done/shutdown' commands/events (Closes #24)
This commit is contained in:
@@ -168,6 +168,8 @@ Control::is_shutdown_completed() {
|
||||
|
||||
void
|
||||
Control::handle_shutdown() {
|
||||
rpc::commands.call_catch("event.system.shutdown", rpc::make_target(), "shutdown", "System shutdown event action failed: ");
|
||||
|
||||
if (!m_shutdownQuick) {
|
||||
// Temporary hack:
|
||||
if (worker_thread->is_active())
|
||||
|
||||
Reference in New Issue
Block a user