Skip to content

Commit

Permalink
fix: crashes on ctrl + c (#973)
Browse files Browse the repository at this point in the history
* fix: crashes on ctrl + c

* fix formatting
  • Loading branch information
sansyrox authored Oct 3, 2024
1 parent d5394e0 commit 3415fcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use std::sync::atomic::AtomicBool;
use std::sync::atomic::Ordering::{Relaxed, SeqCst};
use std::sync::{Arc, RwLock};

use std::process::abort;
use std::process::exit;
use std::{env, thread};

use actix_files::Files;
Expand Down Expand Up @@ -230,7 +230,7 @@ impl Server {
Ok(())
})
})?;
abort();
exit(0);
}
Ok(())
}
Expand Down

0 comments on commit 3415fcd

Please sign in to comment.