Explicitly shut down syncthing on exit.

This commit is contained in:
Felix Ableitner 2015-03-05 11:46:39 +01:00
parent d299f38520
commit d043153a1f
1 changed files with 1 additions and 0 deletions

View File

@ -226,6 +226,7 @@ public class DrawerFragment extends Fragment implements RestApi.OnReceiveSystemI
mActivity.closeDrawer();
break;
case 4:
mActivity.getService().getApi().shutdown();
mActivity.stopService(new Intent(mActivity, SyncthingService.class));
mActivity.finish();
mActivity.closeDrawer();