From 6be59569e323747e0f9b3a1378822eb6812cf99e Mon Sep 17 00:00:00 2001 From: alonso Date: Wed, 9 Jun 2010 12:56:47 +0000 Subject: git-svn-id: https://opengnsys.es/svn/trunk@1033 a21b9725-9963-47de-94b9-378ad31fedc9 --- admin/Services/ogAdmAgent/sources/ogAdmAgent.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'admin') 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); } -- cgit v1.2.3-18-g5258