actors: Fix self-destruct.
authorChristopher Allan Webber <cwebber@dustycloud.org>
Tue, 26 Apr 2016 15:46:21 +0000 (10:46 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Tue, 26 Apr 2016 15:46:21 +0000 (10:46 -0500)
* 8sync/systems/actors.scm (self-destruct): Fix call to hash-remove!,
  which had the wrong arguments passed to hash-remove!

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."
 
 (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
 
 
 \f