Skip to content

Commit c671a31

Browse files
committed
Fix for 2.12
1 parent 410d75e commit c671a31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ws/src/main/scala/sttp/ws/WebSocket.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ trait WebSocket[F[_]] {
5656
// closed. This would cause this call to fail with an exception, while the WS was properly used. That's why
5757
// we ignore the exception here, and allow for closure (or actual I/O exception) to be discovered via the
5858
// subsequent `receive`.
59-
.handleError(_ => monad.unit(()))
59+
.handleError { case _ => monad.unit(()) }
6060
.flatMap(_ => receiveDataFrame(pongOnPing))
6161
case _ => receiveDataFrame(pongOnPing)
6262
}

0 commit comments

Comments
 (0)