diff --git a/src/class-laps.php b/src/class-laps.php index 32912a5..37089a5 100644 --- a/src/class-laps.php +++ b/src/class-laps.php @@ -102,6 +102,10 @@ class Laps { ) ); + if ( 'stop' === $event['action'] && ! self::$stopwatch->isStarted( $event['event'] ) ) { + return $input; + } + self::$stopwatch->$event['action']( $event['event'], $event['category'] ); return $input;