Skip to content
Snippets Groups Projects
Commit 5262f081 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Removes the idiotic decision of myself to store ports in signed shorts.

parent 148c9e58
No related branches found
No related tags found
No related merge requests found
......@@ -106,7 +106,7 @@ class ChatActivity : ServiceBoundActivity() {
finish()
} else {
backendValue.connectUnlessConnected(
SocketAddress(account.host, account.port.toShort()),
SocketAddress(account.host, account.port),
account.user,
account.pass,
true
......
......@@ -2,6 +2,6 @@ package de.kuschku.libquassel.session
import java.net.InetSocketAddress
data class SocketAddress(val host: String, val port: Short) {
fun data() = InetSocketAddress(host, port.toInt())
data class SocketAddress(val host: String, val port: Int) {
fun data() = InetSocketAddress(host, port)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment