aboutsummaryrefslogtreecommitdiff
path: root/src/commands/quit.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/quit.rs')
-rw-r--r--src/commands/quit.rs4
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;
}