Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Not running script because past shutdown deadline - bindtoclose function error?

Asked by 5 years ago

Im getting that error, i have a bindtoclose function. I guess it doesnt work properly because when i press test and press stop it takes 30 seconds to unfreeze and gives the error

" Not running script because past shutdown deadline " x300

the bindtoclose function looks like this

function GetDictionaryLength(tab)
    local keys = 0
    for key,_ in next,tab do
        keys = keys + 1
    end
    return keys
end

game:BindToClose(function()
    repeat wait(1) until (GetDictionaryLength(sessionData) == 0)
end)
0
Because you waited too long. The game needs to shut down eventually! User#19524 175 — 5y
0
That's not quite a fix to my script or an answer, doesn't help alot! User#19328 0 — 5y

Answer this question