harshimurthy / remotedroid

Automatically exported from code.google.com/p/remotedroid
0 stars 0 forks source link

Crash if wifi is not available #61

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The program crash if WiFi connection is not available.

What steps will reproduce the problem?
1. Turn off wifi
2. Run the program
3. Leave program

What is the expected output?
The program ends smoothly
What do you see instead?
The program crash and rise a unhandled exception

What version of the product are you using? On what operating system?
SVN r45 running on galaxy ace Android 2.3.2

Please provide any additional information below.
To correct just handle a exception when closing socket in class DiscoverThread 
around line 44 as below:

    public void closeSocket() {
        try {
            this.socket.close();
            this.inSocket.close();
        } catch (Exception e) { }
    }

Original issue reported on code.google.com by J.Franci...@gmail.com on 12 Jan 2012 at 1:53