mirror of https://github.com/sbt/sbt.git
Close previous client socket
This looked like a resource leak. I'm not 100% sure this matters.
This commit is contained in:
parent
fcfe4333fe
commit
26b7c5204c
|
|
@ -205,6 +205,7 @@ case class TestServer(
|
|||
)
|
||||
|
||||
def resetConnection() = {
|
||||
Option(sk).foreach(_.close())
|
||||
sk = ClientSocket.socket(portfile)._1
|
||||
out = sk.getOutputStream
|
||||
in = sk.getInputStream
|
||||
|
|
|
|||
Loading…
Reference in New Issue