fix: tor: Call event_base_loopbreak from the event's callback
This commit is contained in:
parent
459baa1756
commit
a981e749e6
1 changed files with 3 additions and 1 deletions
|
@ -759,7 +759,9 @@ void InterruptTorControl()
|
||||||
{
|
{
|
||||||
if (gBase) {
|
if (gBase) {
|
||||||
LogPrintf("tor: Thread interrupt\n");
|
LogPrintf("tor: Thread interrupt\n");
|
||||||
event_base_loopbreak(gBase);
|
event_base_once(gBase, -1, EV_TIMEOUT, [](evutil_socket_t, short, void*) {
|
||||||
|
event_base_loopbreak(gBase);
|
||||||
|
}, nullptr, nullptr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue