X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=lib%2Fguile%2Fautodl;fp=lib%2Fguile%2Fautodl;h=11a5a9096723dbdb941e727ec6d431b87df49da2;hb=2bb57f497fc1acd6460db9e9eeab5dce0d693d15;hp=fe454e8db6fe00be18156df616b0bc8dcf072ae6;hpb=d9d1283ed0a42621e9cb76ee63e2dbd3a8227cca;p=doldaconnect.git diff --git a/lib/guile/autodl b/lib/guile/autodl index fe454e8..11a5a90 100755 --- a/lib/guile/autodl +++ b/lib/guile/autodl @@ -326,6 +326,9 @@ ) (define (handlesr filename fnet peer size slots resptime hash) + (if (eq? (cdr (assoc 'search-mode session)) 'wait) + (begin (set-cdr! (assoc 'search-mode session) 'normal) + (logf "reverting to normal mode"))) (let ((cl (or (assoc size sr) (let ((newp (cons size '()))) (set! sr (append sr (list newp))) newp))) (newsr (list @@ -515,9 +518,6 @@ (write-info-file))))) ((622) ; Search result (let ((ires (list->vector (dc-intresp resp)))) - (if (eq? (cdr (assoc 'search-mode session)) 'wait) - (begin (set-cdr! (assoc 'search-mode session) 'normal) - (logf "reverting to normal mode"))) (if (and ires (= (vector-ref ires 0) srchid)) (apply handlesr (map (lambda (n) (vector-ref ires n)) '(1 2 3 4 5 7 8)))))) )