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

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

Merge "Catch security exception during socket creation."

parents 53ed804c d55bfd72
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.