From 285b768ce9edfa45a716676ac27b40c94cb05c1f Mon Sep 17 00:00:00 2001 From: Matteo Baccan Date: Tue, 28 Nov 2023 15:49:43 +0100 Subject: [PATCH] Spelling update --- src/main/java/it/baccan/sockredirector/FlowThread.java | 2 +- .../java/it/baccan/sockredirector/ServerSocketThread.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/it/baccan/sockredirector/FlowThread.java b/src/main/java/it/baccan/sockredirector/FlowThread.java index 25b78f6..721009c 100644 --- a/src/main/java/it/baccan/sockredirector/FlowThread.java +++ b/src/main/java/it/baccan/sockredirector/FlowThread.java @@ -136,7 +136,7 @@ private void runNormal() { bytesToRead = sourceInputStream.available(); } - // Write bytes if there arent new bytes to read or buffer is full + // Write bytes if there are not new bytes to read or buffer is full if (bufferPosition >= size || bytesToRead == 0) { socketPause(getWritePause()); logData(logFile, buffer, bufferPosition); diff --git a/src/main/java/it/baccan/sockredirector/ServerSocketThread.java b/src/main/java/it/baccan/sockredirector/ServerSocketThread.java index d944ad0..92ca072 100644 --- a/src/main/java/it/baccan/sockredirector/ServerSocketThread.java +++ b/src/main/java/it/baccan/sockredirector/ServerSocketThread.java @@ -33,7 +33,7 @@ public class ServerSocketThread extends Thread { private FlowThread destinationOutputToSourceInputThread; /** - * Current htread number. + * Current thread number. * * @return */ @@ -140,7 +140,7 @@ public void run() { threadNumber, getServerPojo().getDestinationAddress(), getServerPojo().getDestinationPort()); - LOG.error("Unknow error", e); + LOG.error("Unknown error", e); } finally { try { socketIn.close();