actors: Fix self-destruct.
[8sync.git] / 8sync / systems / actors.scm
index 286fef92f24103589e4599d361619a9855b560e9..e5a2985abe6349c412fa0af6f8e14a29f9adb17f 100644 (file)
@@ -620,7 +620,8 @@ Like create-actor, but permits supplying an id-cookie."
 
 (define (self-destruct actor)
   "Remove an actor from the hive."
-  (hash-remove! hive-actor-registry (actor-id actor)))
+  (hash-remove! (hive-actor-registry (actor-hive actor))
+                (actor-id actor)))
 
 
 \f