From: fredrik Date: Sun, 5 Nov 2006 01:28:12 +0000 (+0000) Subject: Don't kill fns that hubmgr doesn't manage. X-Git-Tag: 0.3~192 X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=2a156d4ff7984a522117248f72901775c45b4a55;p=doldaconnect.git Don't kill fns that hubmgr doesn't manage. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@731 959494ce-11ee-0310-bf91-de5d638817bd --- diff --git a/lib/guile/hubmgr b/lib/guile/hubmgr index daa5482..94b0e3f 100755 --- a/lib/guile/hubmgr +++ b/lib/guile/hubmgr @@ -82,7 +82,8 @@ (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)))