Fix FileLoader closing.
GitOrigin-RevId: 85ee2acb100e160fd13752ef8fb238dcd63e1f35
This commit is contained in:
parent
517387cecc
commit
51f8ed3526
@ -42,7 +42,11 @@ size_t FileLoader::get_part_size() const {
|
||||
}
|
||||
|
||||
void FileLoader::hangup() {
|
||||
if (delay_dispatcher_.empty()) {
|
||||
stop();
|
||||
} else {
|
||||
delay_dispatcher_.reset();
|
||||
}
|
||||
}
|
||||
|
||||
void FileLoader::hangup_shared() {
|
||||
|
Loading…
Reference in New Issue
Block a user