changeset 87:42cb377e3f3e

wokkel (rsm): deep copy `_legacyHandlers` before modifying it, so original PubSubService is not affected
author Goffi <goffi@goffi.org>
date Mon, 16 May 2022 14:21:11 +0200
parents 636d48c2b77a
children 298dac50ca73
files sat_tmp/wokkel/rsm.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sat_tmp/wokkel/rsm.py	Wed May 11 13:13:32 2022 +0200
+++ b/sat_tmp/wokkel/rsm.py	Mon May 16 14:21:11 2022 +0200
@@ -438,4 +438,5 @@
         return d
 
 
+PubSubService._legacyHandlers = copy.deepcopy(pubsub.PubSubService._legacyHandlers)
 PubSubService._legacyHandlers["items"][1].append("rsm")