if LocalHTTPD fails to instantiate, log error and stop trying
This commit is contained in:
parent
b7339e9423
commit
568e82c07e
@ -170,6 +170,10 @@ public class LocalRepoService extends Service {
|
||||
LocalRepoService.this,
|
||||
getFilesDir(),
|
||||
Preferences.get().isLocalRepoHttpsEnabled());
|
||||
if (localHttpd == null) {
|
||||
Log.e(TAG, "localHttpd == null!");
|
||||
return;
|
||||
}
|
||||
|
||||
Looper.prepare(); // must be run before creating a Handler
|
||||
webServerThreadHandler = new Handler() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user