mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-23 08:55:40 +01:00
sim: improve simulator
This commit is contained in:
@@ -93,6 +93,7 @@ fn main() -> anyhow::Result<()> {
|
||||
// At prompt, increment interrupt count
|
||||
if interrupt_count.fetch_add(1, Ordering::SeqCst) >= 1 {
|
||||
eprintln!("Interrupted. Exiting...");
|
||||
conn.close();
|
||||
break;
|
||||
}
|
||||
println!("Use .quit to exit or press Ctrl-C again to force quit.");
|
||||
|
||||
Reference in New Issue
Block a user