Don't kill fns that hubmgr doesn't manage.
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Sun, 5 Nov 2006 01:28:12 +0000 (01:28 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Sun, 5 Nov 2006 01:28:12 +0000 (01:28 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@731 959494ce-11ee-0310-bf91-de5d638817bd

lib/guile/hubmgr

index daa5482..94b0e3f 100755 (executable)
@@ -82,7 +82,8 @@
     (dc-ecmd-assert 200 "notify" "fn:act" "on")
     (dc-handle-fn)
     (dc-fnproc-reg 'state (lambda (fn)
     (dc-ecmd-assert 200 "notify" "fn:act" "on")
     (dc-handle-fn)
     (dc-fnproc-reg 'state (lambda (fn)
-                           (if (eq? (cdr (assq 'state fn)) 'dead)
+                           (if (and (eq? (cdr (assq 'state fn)) 'dead)
+                                    (assq (cdr (assq 'id fn)) (map (lambda (o) (cons (cdr o) (car o))) connlist)))
                                (begin (logf "~a died" (cdr (assq 'id fn)))
                                       (dc-qcmd (list "dcnct" (cdr (assq 'id fn))))))
                            (cklist)))
                                (begin (logf "~a died" (cdr (assq 'id fn)))
                                       (dc-qcmd (list "dcnct" (cdr (assq 'id fn))))))
                            (cklist)))