Update src/org/thoughtcrime/securesms/connect/ForegroundDetector.java

Co-authored-by: Hocuri <hocuri@gmx.de>
This commit is contained in:
bjoern
2020-06-07 14:36:10 +02:00
committed by GitHub
parent d9d52f0d3e
commit d5aa0d6eab
@@ -38,9 +38,7 @@ public class ForegroundDetector implements Application.ActivityLifecycleCallback
if (refs == 0) {
application.dcContext.maybeStartIo();
if (application.dcContext.isNetworkConnected()) {
new Thread(() -> {
application.dcContext.maybeNetwork();
});
new Thread(() -> application.dcContext.maybeNetwork()).start();
}
}