summaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authoralonso <alonso@us.es>2010-06-09 12:56:47 +0000
committeralonso <alonso@us.es>2010-06-09 12:56:47 +0000
commit6be59569e323747e0f9b3a1378822eb6812cf99e (patch)
tree570d228be9d87915f1f947114cbcc20fb7a9d54f /admin
parent8d5ffb27b60ee0824916c76ab367d2b3d6e19d4c (diff)
git-svn-id: https://opengnsys.es/svn/trunk@1033 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin')
-rw-r--r--admin/Services/ogAdmAgent/sources/ogAdmAgent.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/admin/Services/ogAdmAgent/sources/ogAdmAgent.cpp b/admin/Services/ogAdmAgent/sources/ogAdmAgent.cpp
index f647538d..d0b9599b 100644
--- a/admin/Services/ogAdmAgent/sources/ogAdmAgent.cpp
+++ b/admin/Services/ogAdmAgent/sources/ogAdmAgent.cpp
@@ -188,9 +188,11 @@ int busca_accion(WORD dia,WORD mes,WORD anno,WORD hora,WORD minutos,WORD diasema
return(false);
}
if(tbl.ISEOF()){
+ db.Close();
return(true); // No hay acciones programadas
}
if (!wdb.Open(usuario, pasguor, datasource, catalog)) { // error de conexion
+ db.Close();
db.GetErrorErrStr(ErrStr);
return (false);
}
@@ -218,6 +220,7 @@ int busca_accion(WORD dia,WORD mes,WORD anno,WORD hora,WORD minutos,WORD diasema
}
tbl.MoveNext();
}
+ wdb.Close();
db.Close();
return(true);
}