From 1277e05c931608f7f07a41dff6bae92b8d262299 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sat, 11 Nov 2017 03:25:04 -0800 Subject: graceful shutdown, fix profile corruption bug profile corruption was trailing json left by not truncating when profile shrinks in size --- src/commands/quit.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/commands') diff --git a/src/commands/quit.rs b/src/commands/quit.rs index 716c412..5bd8c18 100644 --- a/src/commands/quit.rs +++ b/src/commands/quit.rs @@ -12,7 +12,5 @@ pub static QUIT: Command = Command { }; fn quit(_line: String, tweeter: &mut tw::TwitterCache, _queryer: &mut Queryer) { - tweeter.display_info.status("Bye bye!".to_owned()); - tweeter.store_cache(); - exit(0); + tweeter.state = tw::AppState::Shutdown; } -- cgit v1.1