Added check for Toolbar event start before closing it.
This commit is contained in:
1 parent
3edaf2dbc9
commit
68ae657962
1 file changed
+3
-1
+3
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user