Mercurial > noffle
comparison src/fetch.c @ 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 | 6b2b93288caa |
children | b2a4f839affd |
comparison
equal
deleted
inserted
replaced
138:3e205fab11cb | 139:8e350d558c98 |
---|---|
1 /* | 1 /* |
2 fetch.c | 2 fetch.c |
3 | 3 |
4 $Id: fetch.c 190 2000-08-09 21:20:12Z bears $ | 4 $Id: fetch.c 207 2000-09-10 12:29:52Z enz $ |
5 */ | 5 */ |
6 | 6 |
7 #if HAVE_CONFIG_H | 7 #if HAVE_CONFIG_H |
8 #include <config.h> | 8 #include <config.h> |
9 #endif | 9 #endif |
327 Bool | 327 Bool |
328 Fetch_init( const char *serv ) | 328 Fetch_init( const char *serv ) |
329 { | 329 { |
330 Lock_closeDatabases(); | 330 Lock_closeDatabases(); |
331 if ( ! connectToServ( serv ) ) | 331 if ( ! connectToServ( serv ) ) |
332 { | |
333 Lock_openDatabases(); | |
332 return FALSE; | 334 return FALSE; |
335 } | |
333 Utl_cpyStr( fetch.serv, serv ); | 336 Utl_cpyStr( fetch.serv, serv ); |
334 fetch.ready = TRUE; | 337 fetch.ready = TRUE; |
335 return TRUE; | 338 return TRUE; |
336 } | 339 } |
337 | 340 |