Store bootServerSocket in state

This commit is contained in:
Adrien Piquerez 2024-02-15 16:18:54 +01:00
parent 749b9caa11
commit eadf1117f6
1 changed files with 2 additions and 3 deletions

View File

@ -131,9 +131,8 @@ private[sbt] object xMain:
) )
.put(BasicKeys.detachStdio, detachStdio) .put(BasicKeys.detachStdio, detachStdio)
val state = bootServerSocket match { val state = bootServerSocket match {
// todo: fix this case Some(l) => state0.put(Keys.bootServerSocket, l)
// case Some(l) => state0.put(Keys.bootServerSocket, l) case _ => state0
case _ => state0
} }
try StandardMain.runManaged(state) try StandardMain.runManaged(state)
finally bootServerSocket.foreach(_.close()) finally bootServerSocket.foreach(_.close())