Shutdown server when no connections remain
This commit is contained in:
parent
461f0dfef5
commit
7abce613fa
|
@ -59,6 +59,8 @@
|
|||
(close-input-port in)
|
||||
(close-output-port out)
|
||||
(set! connection-count (- connection-count 1))
|
||||
(when (zero? connection-count)
|
||||
(exit 0))
|
||||
(transition s (quit))]
|
||||
[(message (event _ (list line)) _ _)
|
||||
(fprintf out "~a\n" line)
|
||||
|
|
Loading…
Reference in New Issue