diff --git a/src/commands/CmdStop.cpp b/src/commands/CmdStop.cpp index 880b3b3a..d2ae5683 100644 --- a/src/commands/CmdStop.cpp +++ b/src/commands/CmdStop.cpp @@ -41,8 +41,7 @@ int CmdStop ( auto latest = getLatestInterval (database); // Verify the interval is open. - if ( latest.range.started () && - ! latest.range.ended ()) + if (latest.range.open ()) { // Stop it. Interval modified {latest};