Skip to content

Commit

Permalink
Small tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
jenssegers committed May 2, 2014
1 parent e1aa8ed commit 7c50d38
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/RollbarServiceProvider.php
Expand Up @@ -52,7 +52,10 @@ public function register()
\Rollbar::$instance = $instance;

// Flush Rollbar on shutdown
register_shutdown_function(array($instance, 'flush'));
if ($instance->batched)
{
register_shutdown_function(array($instance, 'flush'));
}

return $instance;
});
Expand Down

0 comments on commit 7c50d38

Please sign in to comment.