Fix FileLoader closing.

GitOrigin-RevId: 85ee2acb100e160fd13752ef8fb238dcd63e1f35
This commit is contained in:
levlam 2020-09-03 00:16:49 +03:00
parent 517387cecc
commit 51f8ed3526

View File

@ -42,7 +42,11 @@ size_t FileLoader::get_part_size() const {
}
void FileLoader::hangup() {
delay_dispatcher_.reset();
if (delay_dispatcher_.empty()) {
stop();
} else {
delay_dispatcher_.reset();
}
}
void FileLoader::hangup_shared() {