if LocalHTTPD fails to instantiate, log error and stop trying

This commit is contained in:
Hans-Christoph Steiner 2014-05-22 20:42:49 -04:00
parent b7339e9423
commit 568e82c07e

View File

@ -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() {