Skip to content

Commit

Permalink
Revert "fix: bug"
Browse files Browse the repository at this point in the history
This reverts commit 517f14b.
  • Loading branch information
AndreaDel03 committed Dec 19, 2024
1 parent 517f14b commit 955a3d1
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,8 @@ public void handle(Callback[] callbacks) throws IOException, UnsupportedCallback
OAuthBearerToken token = getOAuthBearerToken();
OAuthBearerTokenCallback oauthCallback = (OAuthBearerTokenCallback) callback;
oauthCallback.token(token);
} catch (InterruptedException e){
Thread.currentThread().interrupt();
throw new BusinessException("Thread was interrupted while handling callback", e);
} catch (ExecutionException | TimeoutException e) {
throw new BusinessException("Error while handling callback");
} catch (InterruptedException | ExecutionException | TimeoutException e) {
e.printStackTrace();
}
} else {
throw new UnsupportedCallbackException(callback);
Expand Down

0 comments on commit 955a3d1

Please sign in to comment.