X-Git-Url: https://jxself.org/git/?p=mudsync.git;a=blobdiff_plain;f=mudsync%2Fnetworking.scm;h=8c5955dd39c44b2325278573bf288ea638a31246;hp=fe641cc9a227556ee945a8fc58b18a5f3b052ea3;hb=c4fbe0119751407183f541fa64f850e6b7404d97;hpb=7248fd4470039dab59a8e3a95829952e91c0fd19 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"