diff options
author | iximeow <me@iximeow.net> | 2017-11-11 03:25:04 -0800 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2017-11-11 03:25:04 -0800 |
commit | 1277e05c931608f7f07a41dff6bae92b8d262299 (patch) | |
tree | 342631e076e07a6811854208f01d0bdc56021a50 /src/commands | |
parent | bfc3232b5dae3ac8fa0fba3f50d771d75beda08a (diff) |
graceful shutdown, fix profile corruption bug
profile corruption was trailing json left by not truncating when profile shrinks in size
Diffstat (limited to 'src/commands')
-rw-r--r-- | src/commands/quit.rs | 4 |
1 files changed, 1 insertions, 3 deletions
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; } |