From c0dc4ede9286e07a9f24e19a8f0ccb9913babc6c Mon Sep 17 00:00:00 2001 From: "hinto.janai" Date: Tue, 30 Jul 2024 16:28:35 -0400 Subject: [PATCH] panic: remove msg send this doesn't work because: Cannot start a runtime from within a runtime. This happens because a function (like `block_on`) attempted to block the current thread while the thread is being used to drive asynchronous tasks. --- src/panic.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/panic.rs b/src/panic.rs index c2f6aa5..abaebbb 100644 --- a/src/panic.rs +++ b/src/panic.rs @@ -32,11 +32,5 @@ Stack backtrace:\n{stack_trace} ); println!("{panic_info}"); - - // Send panic message to room. - tokio::runtime::Handle::current().block_on(async move { - let msg = RoomMessageEventContent::text_markdown(panic_info); - crate::free::send(msg).await.unwrap(); - }); })); }