Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13115821
D7884.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
446 B
Subscribers
None
D7884.diff
View Options
diff --git a/src/torcontrol.cpp b/src/torcontrol.cpp
--- a/src/torcontrol.cpp
+++ b/src/torcontrol.cpp
@@ -887,7 +887,10 @@
void InterruptTorControl() {
if (gBase) {
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);
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 1, 12:11 (48 m, 29 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5181847
Default Alt Text
D7884.diff (446 B)
Attached To
D7884: fix: tor: Call event_base_loopbreak from the event's callback
Event Timeline
Log In to Comment