summaryrefslogtreecommitdiffstats
path: root/src/commands/quit.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/quit.rs')
-rw-r--r--src/commands/quit.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/quit.rs b/src/commands/quit.rs
index 45283c1..2da6f6b 100644
--- a/src/commands/quit.rs
+++ b/src/commands/quit.rs
@@ -15,7 +15,7 @@ impl Quit {
}
pub fn quit(context: &mut JoshutoContext) -> JoshutoResult<()> {
- if context.worker_busy {
+ if context.worker.is_busy() {
Err(JoshutoError::new(
JoshutoErrorKind::IOOther,
String::from("operations running in background, use force_quit to quit"),