diff --git a/src/class-laps.php b/src/class-laps.php index 8e8de79..06ed8a2 100644 --- a/src/class-laps.php +++ b/src/class-laps.php @@ -222,7 +222,9 @@ class Laps { ) ); - self::$stopwatch->stop( 'Toolbar' ); + if ( self::$stopwatch->isStarted( 'Toolbar' ) ) { + self::$stopwatch->stop( 'Toolbar' ); + } $events = self::$stopwatch->getSectionEvents( '__root__' ); $start = $timestart * 1000;