Explicitly shut down syncthing on exit.
This commit is contained in:
parent
d299f38520
commit
d043153a1f
|
@ -226,6 +226,7 @@ public class DrawerFragment extends Fragment implements RestApi.OnReceiveSystemI
|
||||||
mActivity.closeDrawer();
|
mActivity.closeDrawer();
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
|
mActivity.getService().getApi().shutdown();
|
||||||
mActivity.stopService(new Intent(mActivity, SyncthingService.class));
|
mActivity.stopService(new Intent(mActivity, SyncthingService.class));
|
||||||
mActivity.finish();
|
mActivity.finish();
|
||||||
mActivity.closeDrawer();
|
mActivity.closeDrawer();
|
||||||
|
|
Loading…
Reference in New Issue