X-Git-Url: https://jxself.org/git/?p=mudsync.git;a=blobdiff_plain;f=mudsync%2Fnetworking.scm;h=8c5955dd39c44b2325278573bf288ea638a31246;hp=fe641cc9a227556ee945a8fc58b18a5f3b052ea3;hb=902b52f87ea65d6a52cb84afee32ad20d89b2bc3;hpb=4d1280ec16d7645817bf741cde658e358de66327 diff --git a/mudsync/networking.scm b/mudsync/networking.scm index fe641cc..8c5955d 100644 --- a/mudsync/networking.scm +++ b/mudsync/networking.scm @@ -145,14 +145,16 @@ "Handle a closed port" (format #t "DEBUG: handled closed port ~x\n" client-id) (8sync-port-remove client) - (hash-remove! (nm-clients nm) client-id)) + (hash-remove! (nm-clients nm) client-id) + (<- nm (nm-send-input-to nm) 'client-closed #:client client-id)) (define-method (nm-handle-port-eof nm client client-id) "Handle seeing an EOF on port" (format #t "DEBUG: handled eof-object on port ~x\n" client-id) (close client) (8sync-port-remove client) - (hash-remove! (nm-clients nm) client-id)) + (hash-remove! (nm-clients nm) client-id) + (<- nm (nm-send-input-to nm) 'client-closed #:client client-id)) (define-method (nm-handle-line nm client client-id line) "Handle an incoming line of input from a client"