Skip to content

Commit 6e103cf

Browse files
end timer on abort (#59)
1 parent c789822 commit 6e103cf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/app.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,11 +435,13 @@ impl<'a> App<'a> {
435435
task.abort();
436436
self.state.query_task = None;
437437
self.components.data.set_cancelled();
438+
self.state.last_query_end = Some(chrono::Utc::now());
438439
},
439440
Some(DbTask::TxStart(task)) => {
440441
task.abort();
441442
self.state.query_task = None;
442443
self.components.data.set_cancelled();
444+
self.state.last_query_end = Some(chrono::Utc::now());
443445
},
444446
_ => {},
445447
}

0 commit comments

Comments
 (0)