Skip to content

Commit

Permalink
throw on onStart
Browse files Browse the repository at this point in the history
  • Loading branch information
mutianf committed Oct 7, 2022
1 parent 4517183 commit 4720481
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ public SafeResponseObserver(ResponseObserver outerObserver) {
@Override
public final void onStart(StreamController streamController) {
if (!isStarted.compareAndSet(false, true)) {
logException("A stream is already started");
return;
throw new IllegalStateException("A stream is already started");
}

this.streamController = streamController;
Expand Down

0 comments on commit 4720481

Please sign in to comment.