Skip to content

Commit

Permalink
Catch Exception
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Bescos Gascon <jorge.bescos.gascon@oracle.com>
  • Loading branch information
jbescos committed Dec 6, 2023
1 parent 23fe9ba commit 6971f4c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2020 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2023 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
Expand Down Expand Up @@ -139,7 +139,7 @@ public CompletionStage<?> send(OutboundSseEvent event) {
try {
this.write(event);
return CompletableFuture.completedFuture(null);
} catch (IOException e) {
} catch (Exception e) {
CompletableFuture<Void> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
Expand Down

0 comments on commit 6971f4c

Please sign in to comment.