aboutsummaryrefslogtreecommitdiff
path: root/src/scalevalapokalypsi/Client/Client.scala
diff options
context:
space:
mode:
authorJoel Kronqvist <joel.kronqvist@iki.fi>2024-11-22 22:42:22 +0200
committerJoel Kronqvist <joel.kronqvist@iki.fi>2024-11-22 22:42:22 +0200
commitdb5612ed9734d51e6fcd0d7b5a7635e49b773581 (patch)
treee23e607c9d9eeedc377bf44e57c2b58b41d0389d /src/scalevalapokalypsi/Client/Client.scala
parent49985d1d11c426968fc298469671326aace96d00 (diff)
downloadscalevalapokalypsi-db5612ed9734d51e6fcd0d7b5a7635e49b773581.tar.gz
scalevalapokalypsi-db5612ed9734d51e6fcd0d7b5a7635e49b773581.zip
Character safety checking, supported terminals updated
Diffstat (limited to 'src/scalevalapokalypsi/Client/Client.scala')
-rw-r--r--src/scalevalapokalypsi/Client/Client.scala3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/scalevalapokalypsi/Client/Client.scala b/src/scalevalapokalypsi/Client/Client.scala
index 0532038..e94fdb0 100644
--- a/src/scalevalapokalypsi/Client/Client.scala
+++ b/src/scalevalapokalypsi/Client/Client.scala
@@ -5,7 +5,7 @@ import scala.io.Source
import scala.sys.process.stdout
import scalevalapokalypsi.constants.*
import scalevalapokalypsi.utils.{stringToByteArray,getNCharsFromSocket}
-import scalevalapokalypsi.Client.{ReceivedLineParser,StdinLineReader,RoomState}
+import scalevalapokalypsi.Client.{ReceivedLineParser,RoomState}
import scala.concurrent.Future
import scala.concurrent.ExecutionContext.Implicits.global
import scala.util.{Try, Success, Failure}
@@ -119,7 +119,6 @@ class Client(socket: Socket):
while availableBytes != 0 do
val bytesRead = input.read(buffer, 0, availableBytes)
if bytesRead != -1 then
- // TODO: unsafe conversion
parseDataFromServer(buffer.take(bytesRead))
availableBytes = input.available()