changeset 139:8e350d558c98 noffle

[svn] Fixed a bug in Fetch_init, that triggered an assertion if connection to remote server failed.
author enz
date Sun, 10 Sep 2000 13:29:52 +0100
parents 3e205fab11cb
children 39082cefbcd4
files src/fetch.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/fetch.c	Sun Sep 10 12:33:42 2000 +0100
+++ b/src/fetch.c	Sun Sep 10 13:29:52 2000 +0100
@@ -1,7 +1,7 @@
 /*
   fetch.c
 
-  $Id: fetch.c 190 2000-08-09 21:20:12Z bears $
+  $Id: fetch.c 207 2000-09-10 12:29:52Z enz $
 */
 
 #if HAVE_CONFIG_H
@@ -329,7 +329,10 @@
 {
     Lock_closeDatabases();
     if ( ! connectToServ( serv ) )
+    {
+        Lock_openDatabases();
         return FALSE;
+    }
     Utl_cpyStr( fetch.serv, serv );
     fetch.ready = TRUE;
     return TRUE;