Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 97e313df authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Catch security exception during socket creation."

parents 9ca6c0ed 5aa5e7a3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -143,6 +143,10 @@ public class ObexServerSockets {
            } catch (IOException e) {
                Log.e(STAG, "Error create ServerSockets ", e);
                initSocketOK = false;
            } catch (SecurityException e) {
                Log.e(STAG, "Error create ServerSockets ", e);
                initSocketOK = false;
                break;
            }
            if (!initSocketOK) {
                // Need to break out of this loop if BT is being turned off.