1
0
mirror of https://github.com/PurpleI2P/i2pd-android.git synced 2025-02-02 18:04:28 +00:00

Update I2PDActivity.java (#24)

This commit is contained in:
nonlin-lin-chaos-order-etc-etal 2021-05-21 16:08:30 +08:00 committed by GitHub
parent 3a91d05c8c
commit 80830ac712
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
}