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 {