Skip to content

Commit 3415fcd

Browse files
authored
fix: crashes on ctrl + c (#973)
* fix: crashes on ctrl + c * fix formatting
1 parent d5394e0 commit 3415fcd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use std::sync::atomic::AtomicBool;
1818
use std::sync::atomic::Ordering::{Relaxed, SeqCst};
1919
use std::sync::{Arc, RwLock};
2020

21-
use std::process::abort;
21+
use std::process::exit;
2222
use std::{env, thread};
2323

2424
use actix_files::Files;
@@ -230,7 +230,7 @@ impl Server {
230230
Ok(())
231231
})
232232
})?;
233-
abort();
233+
exit(0);
234234
}
235235
Ok(())
236236
}

0 commit comments

Comments
 (0)