I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit c7617ba8 authored by str4d's avatar str4d
Browse files

Ensure state image is correct when router has shut down

parent 08c60184
No related branches found
No related tags found
No related merge requests found
......@@ -171,6 +171,14 @@ public class MainFragment extends I2PFragmentBase {
boolean isOn = mCallback.shouldBeOn();
b.setChecked(isOn);
if (!isOn) {
// Sometimes the final state message from the RouterService
// is not received. Ensure that the state image is correct.
// TODO: Fix the race between RouterService shutdown and
// IRouterState unbinding.
updateState("INIT");
}
}
public boolean onBackPressed() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment