Skip to content

Commit

Permalink
Delete client on logout
Browse files Browse the repository at this point in the history
`api.deleteClient()` only create a call but doesn't execute it.
  • Loading branch information
jmattheis committed May 30, 2020
1 parent b35eb06 commit fe9e431
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,6 @@ public boolean onNavigationItemSelected(MenuItem item) {
public void doLogout(DialogInterface dialog, int which) {
setContentView(R.layout.splash);
new DeleteClientAndNavigateToLogin().execute();
finish();
}

private void startLoading() {
Expand Down Expand Up @@ -683,7 +682,7 @@ protected Void doInBackground(Void... ignore) {

if (currentClient != null) {
Log.i("Delete client with id " + currentClient.getId());
api.deleteClient(currentClient.getId());
Api.execute(api.deleteClient(currentClient.getId()));
} else {
Log.e("Could not delete client, client does not exist.");
}
Expand Down

0 comments on commit fe9e431

Please sign in to comment.