Skip to content
This repository was archived by the owner on Feb 17, 2022. It is now read-only.

Commit

Permalink
Merge pull request #31 from marconi-chat/isdev
Browse files Browse the repository at this point in the history
Fixes #29
  • Loading branch information
ZanoDev authored Jan 11, 2019
2 parents eb08aba + 2aeff1e commit 55ce147
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/mcchat/server/ConnectionHandler.kt
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,14 @@ class ConnectionHandler(private val connection: Socket) : Runnable {
other as ConnectionHandler

if (connection.inetAddress != other.connection.inetAddress) return false
if (connection.port != other.connection.port) return false

return true
}

override fun hashCode(): Int {
return connection.inetAddress.hashCode()
var result = connection.inetAddress.hashCode()
result = 31 * result + connection.port.hashCode()
return result
}
}

0 comments on commit 55ce147

Please sign in to comment.