This technically fixes it, but when I tried this, the client didn't always display the connect accepted message, because receives the message before it has a view.