From d23f2cefbde148dedc61da5cf35391a12c6734bb Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Sun, 1 Jan 2017 18:48:09 -0600 Subject: [PATCH] Only keep looping while the actor is alive --- mudsync/networking.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mudsync/networking.scm b/mudsync/networking.scm index c2c1068..f12a7e0 100644 --- a/mudsync/networking.scm +++ b/mudsync/networking.scm @@ -147,7 +147,8 @@ (begin (nm-handle-line nm client client-id (string-trim-right line #\return)) - (loop)))) + (when (actor-am-i-alive? nm) + (loop))))) (loop)) (define (nm-handle-port-closed nm client client-id) -- 2.31.1