]> gitweb.factorcode.org Git - factor.git/commitdiff
concurrency.distributed: use delete-at* instead of at/delete-at.
authorJohn Benediktsson <mrjbq7@gmail.com>
Sat, 20 Jan 2018 16:18:36 +0000 (08:18 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sat, 20 Jan 2018 16:18:36 +0000 (08:18 -0800)
basis/concurrency/distributed/distributed.factor

index f046cdb394a216311cf01ec82b7141c8d898186c..9f480362ec67514589a2155c7a68f0eadbc41d5e 100644 (file)
@@ -56,8 +56,8 @@ C: <connection> connection
     [ thread-connections set-at ] bi ;
 
 : disconnect ( remote-thread -- )
-    [ thread-connections at [ stream>> dispose ] when* ]
-    [ thread-connections delete-at ] bi ;
+    thread-connections delete-at*
+    [ stream>> dispose ] [ drop ] if ;
 
 : with-connection ( remote-thread quot -- )
     '[ connect @ ] over [ disconnect ] curry [ ] cleanup ; inline