1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-23 04:41:16 +00:00

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

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();