Merge pull request #6108 from eatkins/tcp-thin-client

Don't print socket exception on exit
This commit is contained in:
eugene yokota 2020-11-18 10:31:13 -05:00 committed by GitHub
commit 684b7833dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -11,7 +11,7 @@ package client
import java.io.{ File, IOException, InputStream, PrintStream }
import java.lang.ProcessBuilder.Redirect
import java.net.Socket
import java.net.{ Socket, SocketException }
import java.nio.file.Files
import java.util.UUID
import java.util.concurrent.atomic.{ AtomicBoolean, AtomicReference }
@ -888,6 +888,7 @@ class NetworkClient(
status.set("Processing")
}
} catch {
case e: SocketException if command.toString.contains("exit") => running.set(false)
case e: IOException =>
errorStream.println(s"Caught exception writing command to server: $e")
running.set(false)