diff options
Diffstat (limited to 'server/src/api_core_events.cpp')
-rw-r--r-- | server/src/api_core_events.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/api_core_events.cpp b/server/src/api_core_events.cpp index 525f60b..da0eae7 100644 --- a/server/src/api_core_events.cpp +++ b/server/src/api_core_events.cpp @@ -58,6 +58,9 @@ void core_events::download_state_changed(module_base *m, std::list<download_stat case download_state::download_running: sc->set_state(SUBSCRIPTION_DOWNLOAD_STATE::SDS_STARTED); break; + case download_state::download_completed: + sc->set_state(SUBSCRIPTION_DOWNLOAD_STATE::SDS_COMPLETED); + break; default: BOOST_LOG_TRIVIAL(debug)<<__FILE__<<":"<<__LINE__<<"\t"<<__func__<<"\nunhandled download state change event"; break; |