We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
EventLoop::post()
1 parent 22bec91 commit 5cf3278Copy full SHA for 5cf3278
src/mp/proxy.cpp
@@ -245,7 +245,9 @@ void EventLoop::loop()
245
if (read_bytes != 1) throw std::logic_error("EventLoop wait_stream closed unexpectedly");
246
Lock lock(m_mutex);
247
if (m_post_fn) {
248
- Unlock(lock, *m_post_fn);
+ KJ_IF_MAYBE(exception, kj::runCatchingExceptions([&]() { Unlock(lock, *m_post_fn); })) {
249
+ MP_LOG(*this, Log::Error) << "EventLoop: m_post_fn threw: " << kj::str(*exception).cStr();
250
+ }
251
m_post_fn = nullptr;
252
m_cv.notify_all();
253
} else if (done()) {
0 commit comments