From 0b15442f669f6f585b5b8f88b8fd1768b1e86f51 Mon Sep 17 00:00:00 2001 From: ThibaultBee <37510686+ThibaultBee@users.noreply.github.com> Date: Tue, 17 Sep 2024 16:46:14 +0200 Subject: [PATCH] fix(ktx): fix `isEquals` --- .../io/github/thibaultbee/srtdroid/ktx/CoroutineSrtSocket.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srtdroid-ktx/src/main/java/io/github/thibaultbee/srtdroid/ktx/CoroutineSrtSocket.kt b/srtdroid-ktx/src/main/java/io/github/thibaultbee/srtdroid/ktx/CoroutineSrtSocket.kt index ab5aede..8d103b5 100644 --- a/srtdroid-ktx/src/main/java/io/github/thibaultbee/srtdroid/ktx/CoroutineSrtSocket.kt +++ b/srtdroid-ktx/src/main/java/io/github/thibaultbee/srtdroid/ktx/CoroutineSrtSocket.kt @@ -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 {