Double-Clicking when Connecting Causes Unhandled Exception


When a PPC2003 device using wifi is taken out of sleep mode and a button is pressed, the device attempts to connect to the server process.
Sleeping the device causes the wireless network to be disabled. This means the handshake takes longer than usual on this initial connection.
If a button is double-clicked or another button is clicked while connecting an unhandled exception occurs causing the application to close.
Disposal of all resources and closing of the connection seems to be handled correctly.