Skip to content

Commit

Permalink
fix for issue 3872 (payara#3898)
Browse files Browse the repository at this point in the history
Signed-off-by: Maxim Nesen <maxim.nesen@oracle.com>
  • Loading branch information
senivam authored and jansupol committed Jul 30, 2018
1 parent 741e1ab commit 01d3f49
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -16,6 +16,7 @@

package org.glassfish.jersey.media.sse.internal;

import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CompletionStage;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.ExecutorService;
Expand Down Expand Up @@ -102,10 +103,8 @@ public CompletionStage<?> broadcast(final OutboundSseEvent event) {
if (event == null) {
throw new IllegalArgumentException(LocalizationMessages.PARAM_NULL("event"));
}
publish(event);

// TODO JAX-RS 2.1
return null;
return CompletableFuture.completedFuture(publish(event));
}

private void notifyOnCompleteHandlers(Flow.Subscriber<? super OutboundSseEvent> subscriber) {
Expand Down

0 comments on commit 01d3f49

Please sign in to comment.