Sorry about the confusion. There is a client:disconnect() function that you should use for this purpose. The client:stop() function simply stops the network loop so no packets are received or sent. If you are in single player mode there is no point to run the enterFrame loop for AutoLAN so you should use this.
The reason you get the autolanDisconnected event is that there is a timeout period on the connection during which the client and server must send an empty packet to each other. If none is received during this timeout period the connection is closed. One way this could happen is if the connection was lost, the device shutdown, or if you call the stop() function and waited a while.
Thanks for the update,
M.Y. Developers [import]uid: 55057 topic_id: 19917 reply_id: 86498[/import]