mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-23 14:41:04 -04:00
autoproxy: make async really async
This commit is contained in:
parent
b6a550b8f5
commit
9a5504bb47
1 changed files with 5 additions and 1 deletions
|
@ -174,7 +174,11 @@ void rsAutoProxyMonitor::task(taskTicket *ticket)
|
||||||
*tt = *ticket;
|
*tt = *ticket;
|
||||||
tt->types.clear();
|
tt->types.clear();
|
||||||
tt->types.push_back(*it);
|
tt->types.push_back(*it);
|
||||||
|
|
||||||
|
// it's async!
|
||||||
|
RsThread::async([s, tt] {
|
||||||
s->processTaskAsync(tt);
|
s->processTaskAsync(tt);
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
s->processTaskSync(ticket);
|
s->processTaskSync(ticket);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue