changeset 129:6b2b93288caa noffle

[svn] Fix potential lock bug
author bears
date Wed, 09 Aug 2000 22:20:12 +0100
parents 8897b7e3b108
children d6c006a27ffe
files src/fetch.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/fetch.c	Wed Aug 09 22:19:17 2000 +0100
+++ b/src/fetch.c	Wed Aug 09 22:20:12 2000 +0100
@@ -1,7 +1,7 @@
 /*
   fetch.c
 
-  $Id: fetch.c 183 2000-07-25 12:14:54Z bears $
+  $Id: fetch.c 190 2000-08-09 21:20:12Z bears $
 */
 
 #if HAVE_CONFIG_H
@@ -86,7 +86,8 @@
     if ( ! Client_changeToGrp( name ) )
     {
         Log_err( "Could not change to group %s", name );
-	Lock_closeDatabases();
+	if ( Lock_gotLock() )
+	    Lock_closeDatabases();
         return;
     }
     Client_rmtFirstLast( &first, &last );