Moved leftover event stop to the provider.

This commit is contained in:
Andrey Savchenko committed 2018-02-08 18:10:01 +02:00
1 parent d8febfeb3a
commit 8396888ee2
2 files changed
+4 -7

No files matched your search

-7
View File
@@ -131,13 +131,6 @@ class Laps extends Container {
global $timestart;
/** @var Stopwatch $stopwatch */
$stopwatch = $this['stopwatch'];
if ( $stopwatch->isStarted( 'Toolbar' ) ) {
$stopwatch->stop( 'Toolbar' );
}
$events = [];
foreach ( $this->providers as $provider ) {