Added check for Toolbar event start before closing it.

This commit is contained in:
Andrey Savchenko committed 2016-12-01 20:33:55 +02:00
1 parent 3edaf2dbc9
commit 68ae657962
1 file changed
+3 -1
+3 -1
View File
@@ -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;