TaskScheduler: adjust disabled scheduler exception

This commit is contained in:
Dylan K. Taylor 2018-05-31 12:38:36 +01:00
parent 15270f8329
commit 60212cef2f

View File

@ -147,7 +147,7 @@ class TaskScheduler{
*/
private function addTask(Task $task, int $delay, int $period){
if(!$this->enabled){
throw new \InvalidStateException("Tried to schedule task after scheduler shutdown");
throw new \InvalidStateException("Tried to schedule task to disabled scheduler");
}
if($delay <= 0){