Skip to content

Commit

Permalink
fix(ktx): fix isEquals
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultBee committed Sep 17, 2024
1 parent 3a78414 commit 0b15442
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ private constructor(
fun available(): Int = socket.available()

override fun equals(other: Any?): Boolean {
return socket == other
return other is CoroutineSrtSocket && socket == other.socket
}

override fun hashCode(): Int {
Expand Down

0 comments on commit 0b15442

Please sign in to comment.