rabbibotton / clog

CLOG - The Common Lisp Omnificent GUI
Other
1.52k stars 106 forks source link

Tutorial 07: handling disconnects not working #349

Closed hulufei closed 4 months ago

hulufei commented 4 months ago

Hi, thanks for creating the awesome project.

I was trying to catch disconnect to do some clean up. I saw tutorial 07 mentioned handling disconnects, but after I run tutorial 07, when I close the browser, the "Lost connection" message didn't show up.

rabbibotton commented 4 months ago

That shows if the disconnect occurs abnormally. Add:

        (sleep .02)))
    (format t "Normal Disconnect~%"))
(error (c)
  (format t "Lost connection.~%~%~A" c))))

Will see ends normally.

I added that to last commit.