Skip to content

Commit

Permalink
minor fix Fs2UnaryServerCallHandler state handling
Browse files Browse the repository at this point in the history
  • Loading branch information
naoh87 committed Feb 6, 2022
1 parent 1cc473c commit f3be05f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ object Fs2UnaryServerCallHandler {

private def earlyClose(current: State[Request], status: Status): SyncIO[Unit] = {
if (current.cancel.isEmpty) {
state.set(State(Some(SyncIO.unit), None)) >> call.close(status, new Metadata())
state.set(current.copy(cancel = Some(SyncIO.unit))) >> call.close(status, new Metadata())
} else {
SyncIO.unit
}
Expand Down

0 comments on commit f3be05f

Please sign in to comment.