unit tests and fixes
This commit is contained in:
@@ -711,6 +711,10 @@ auto file_manager::rename_file(const std::string &from_api_path,
|
||||
}
|
||||
|
||||
void file_manager::start() {
|
||||
polling::instance().set_callback(
|
||||
{"timed_out_close", polling::frequency::second,
|
||||
[this]() { this->close_timed_out_files(); }});
|
||||
|
||||
if (provider_.is_direct_only()) {
|
||||
stop_requested_ = false;
|
||||
return;
|
||||
@@ -791,9 +795,6 @@ void file_manager::start() {
|
||||
|
||||
upload_thread_ =
|
||||
std::make_unique<std::thread>([this] { upload_handler(); });
|
||||
polling::instance().set_callback(
|
||||
{"timed_out_close", polling::frequency::second,
|
||||
[this]() { this->close_timed_out_files(); }});
|
||||
event_system::instance().raise<service_started>("file_manager");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user