feat: Deadlock detector thread

This commit is contained in:
Jade Ellis
2026-02-06 01:17:45 +00:00
parent fcb646f8c4
commit 56eea935b6
4 changed files with 42 additions and 0 deletions
+4
View File
@@ -5,6 +5,7 @@ use std::sync::{Arc, atomic::Ordering};
use conduwuit_core::{debug_info, error};
mod clap;
mod deadlock;
mod logging;
mod mods;
mod panic;
@@ -27,6 +28,9 @@ pub fn run() -> Result<()> {
}
pub fn run_with_args(args: &Args) -> Result<()> {
// Spawn deadlock detection thread
deadlock::spawn();
let runtime = runtime::new(args)?;
let server = Server::new(args, Some(runtime.handle()))?;