mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-06 02:30:42 -08:00
Better support for sudden connection lost.
This commit is contained in:
parent
844afdf7f4
commit
f6792ca0ed
7 changed files with 21 additions and 6 deletions
|
|
@ -169,6 +169,7 @@
|
|||
(sleep .1))))
|
||||
|
||||
(defun on-new-window (body)
|
||||
(set-html-on-close body "Connection Lost")
|
||||
(let ((app (make-instance 'app-data)))
|
||||
(setf (connection-data-item body "app-data") app))
|
||||
(display-splash body)
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
*global-list-box-hash*))
|
||||
|
||||
(defun on-new-window (body)
|
||||
(set-html-on-close body "Connection Lost")
|
||||
(load-css (html-document body) "/css/w3.css")
|
||||
(setf (title (html-document body)) "CLOG Chat")
|
||||
|
||||
|
|
|
|||
|
|
@ -173,6 +173,7 @@
|
|||
(declare (ignore obj))()))))
|
||||
|
||||
(defun on-new-window (body)
|
||||
(set-html-on-close body "Connection Lost")
|
||||
(let ((app (make-instance 'app-data)))
|
||||
(setf (connection-data-item body "app-data") app))
|
||||
(clog-gui-initialize body)
|
||||
|
|
|
|||
|
|
@ -159,6 +159,7 @@
|
|||
(id-me app)))))
|
||||
|
||||
(defun on-new-window (body)
|
||||
(set-html-on-close body "Connection Lost")
|
||||
;; Create an app-data object for every connection
|
||||
(let ((app (make-instance 'app-data)))
|
||||
(setf (connection-data-item body "app-data") app)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue