[default] use the current scheduler in the online file source
This commit is contained in:
committed by
Ivo van Dongen
parent
551f8baf5a
commit
2a8cc4b3e1
@@ -383,7 +383,7 @@ ActorRef<OnlineFileRequest> OnlineFileRequest::actor() {
|
||||
if (!mailbox) {
|
||||
// Lazy constructed because this can be costly and
|
||||
// the ResourceTransform is not used by many apps.
|
||||
mailbox = std::make_shared<Mailbox>(*util::RunLoop::Get());
|
||||
mailbox = std::make_shared<Mailbox>(*Scheduler::GetCurrent());
|
||||
}
|
||||
|
||||
return ActorRef<OnlineFileRequest>(*this, mailbox);
|
||||
|
||||
Reference in New Issue
Block a user