scan state: Stopping is not reached when a scan is aborting
The new scan progress display the scan state.
- When the scan is aborted during STARTING (which is RUNNING)
- the sequence is the following: STARTING -> STOPPING -> ABORTED
- When the scan is aborted during PREPARING (which is RUNNING)
- the sequence is the following: PREPARING -> PREPARING (while stopping the stuff) -> ABORTED
So when the user aborting a PREPARING scan, we feel like it is not stopping because the state stays at PREPARING.
I think it's a problem.
Any idea if this could be changed safely?
I think that's an important thing to fix before the release 2.1, in order to tell the users the ctrl-c is about to do something.