mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-06 02:30:42 -08:00
Prevent crashes from setting connection data items on a closed connection
This commit is contained in:
parent
3ba39d217c
commit
617c86c71b
1 changed files with 2 additions and 1 deletions
|
|
@ -511,7 +511,8 @@ an application share per connection the same queue of serialized events."
|
|||
|
||||
(defmethod set-connection-data-item ((obj clog-obj) item-name value)
|
||||
(bordeaux-threads:with-lock-held ((connection-data-mutex obj))
|
||||
(setf (gethash item-name (connection-data obj)) value))
|
||||
(ignore-errors
|
||||
(setf (gethash item-name (connection-data obj)) value)))
|
||||
value)
|
||||
(defsetf connection-data-item set-connection-data-item)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue