[default] use the current scheduler in the online file source

This commit is contained in:
Ivo van Dongen
2017-07-25 18:17:33 +03:00
committed by Ivo van Dongen
parent 551f8baf5a
commit 2a8cc4b3e1

View File

@@ -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);