Having a problem with deferrals

Hi,

I’m having a problem with deferrals. If I pass anything in to deferrals.done() I just get Handshaking... on my client.

Here is my code:

AddEventHandler('playerConnecting', function(name, setCallback, deferrals)
	deferrals.defer()
	
	deferrals.update("Doing a few checks...")
	Wait(2000)

	-- Testing a reject connection
	deferrals.done("There has been a problem. Try again soon.")
end)

This is what happends: https://vgy.me/sZbKb9.png

If I pass nothing in to deferrals.done() I have no problem at all.

Maybe someone can come up with an explanation.

Thanks

Are you using the localhost button in the server list header? This one is known not to show any connection errors for unknown reasons.

Wow. It’s working when I connect via direct connect.

I will have to use this until it gets fixed, thanks.