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

Commit 381da4b2 authored by Marvin W.'s avatar Marvin W. 🐿️
Browse files

Merge pull request #77 from michitux/teardown_fixes

Fixes for connectivity issues
parents affce9dc 48809464
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -77,6 +77,7 @@ public class McsInputStream extends Thread {
                    mainHandler.dispatchMessage(mainHandler.obtainMessage(MSG_INPUT, msg));
                } else {
                    mainHandler.dispatchMessage(mainHandler.obtainMessage(MSG_TEARDOWN, "null message"));
                    break; // if input is empty, do not continue looping
                }
            }
        } catch (IOException e) {
+1 −1
Original line number Diff line number Diff line
@@ -323,7 +323,7 @@ public class McsService extends Service implements Handler.Callback {

    private void sendOutputStream(int what, Object obj) {
        McsOutputStream os = outputStream;
        if (os != null) {
        if (os != null && os.isAlive()) {
            Handler outputHandler = os.getHandler();
            if (outputHandler != null)
                outputHandler.sendMessage(outputHandler.obtainMessage(what, obj));