Close previous client socket

This looked like a resource leak. I'm not 100% sure this matters.
This commit is contained in:
Ethan Atkins 2020-06-23 20:08:35 -07:00
parent fcfe4333fe
commit 26b7c5204c
1 changed files with 1 additions and 0 deletions

View File

@ -205,6 +205,7 @@ case class TestServer(
)
def resetConnection() = {
Option(sk).foreach(_.close())
sk = ClientSocket.socket(portfile)._1
out = sk.getOutputStream
in = sk.getInputStream