Skip to content

Commit

Permalink
Add restart to escape class redefinition notification
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinmera committed Mar 7, 2018
1 parent 7d81c2d commit a3b623a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion redefinition-notifying-class.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
(defmethod notify-class-redefinition ((class redefinition-notifying-class) redef)
(loop for pointer in (%class-redefinition-listeners class)
for listener = (tg:weak-pointer-value pointer)
when listener do (notify-class-redefinition listener redef)))
when listener do (with-simple-restart (continue "Ignore redefinition listener.")
(notify-class-redefinition listener redef))))

(defmethod class-redefinition-listeners ((class symbol))
(class-redefinition-listeners (find-class class)))
Expand Down

0 comments on commit a3b623a

Please sign in to comment.