- Home /
Server still sending Packets to inactive clients and throwing errors. How can I stop it?
I can run the game connected to the server all day without errors, until I minimize the App on the phone. (Home screen button out of it) Once the client is minimized, after not too long the server is still trying to send packets to it and throwing tons of Send and Resource Errors.
I've tried using a try{} catch{} around the packet send from the server and force disconnect / "Client disconnected" message, but it seems to ignore all of it and continues throwing the usual "Send Error: No Resources channel:1 bytestosend: 1386". (and never showing the disconnected message or removing the player from the server.) I've also tried: if (client.isReady) before the send, but I don't think that's what that's for.
Any help with this would be appreciated, as I'm running out of ideas.
Edit - Handling the issue on the client side by exiting instead of minimizing when a user presses the home button helps, but I fear it could still be an issue that the server can't handle disconnecting clients it's unable to send to, so I'm still up for suggestions.