Update 'controller/Scheduler.lua'
This commit is contained in:
		| @@ -8,6 +8,7 @@ end | ||||
| AddQueue(Main) | ||||
|  | ||||
| local finish = false | ||||
| local t1 = os.clock() | ||||
| while not finish do  | ||||
| 	finish = true | ||||
| 	for i, co in pairs(Queue) do | ||||
| @@ -16,4 +17,8 @@ while not finish do | ||||
| 			finish = false | ||||
| 		end | ||||
| 	end | ||||
| 	if os.clock() - t1 > 1 do | ||||
| 		sleep(0) | ||||
| 		t1 = os.clock() | ||||
| 	end | ||||
| end | ||||
		Reference in New Issue
	
	Block a user