Browse Source

Update I2PDActivity.java (#24)

pull/32/head
nonlin-lin-chaos-order-etc-etal 3 years ago committed by GitHub
parent
commit
80830ac712
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      app/src/main/java/org/purplei2p/i2pd/I2PDActivity.java

7
app/src/main/java/org/purplei2p/i2pd/I2PDActivity.java

@ -164,8 +164,13 @@ public class I2PDActivity extends Activity { @@ -164,8 +164,13 @@ public class I2PDActivity extends Activity {
//cancelGracefulStop0();
try {
doUnbindService();
} catch (IllegalArgumentException ex) {
Log.e(TAG, "throwable caught and ignored", ex);
if (ex.getMessage().startsWith("Service not registered: " + org.purplei2p.i2pd.I2PDActivity.class.getName())) {
Log.i(TAG, "Service not registered exception seems to be normal, not a bug it seems.");
}
} catch (Throwable tr) {
Log.e(TAG, "", tr);
Log.e(TAG, "throwable caught and ignored", tr);
}
}

Loading…
Cancel
Save