summaryrefslogtreecommitdiffstats
path: root/sources
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2013-10-10 07:43:24 +0000
committerramon <ramongomez@us.es>2013-10-10 07:43:24 +0000
commitfcc271fdc9d7606f5ddc9d3403e181cd8834496c (patch)
tree65c32d597ac2dfdfcece339e6413e9a55fd2e2ca /sources
parentcddd96262085124d65067454ee64c362c825a2fc (diff)
#597: Añadir cierres de conexión a la base de datos en funciones AutoexecCliente y EnvioProgramacion del servicio ogAdmServer.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@4054 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'sources')
-rw-r--r--sources/ogAdmServer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/ogAdmServer.cpp b/sources/ogAdmServer.cpp
index 9059b45..6473143 100644
--- a/sources/ogAdmServer.cpp
+++ b/sources/ogAdmServer.cpp
@@ -1009,6 +1009,7 @@ BOOLEAN AutoexecCliente(SOCKET *socket_c, TRAMA *ptrTrama) {
lon += sprintf(ptrTrama->parametros + lon, "res=0\r");
}
+ db.Close();
fclose(fileexe);
if (!mandaTrama(socket_c, ptrTrama)) {
@@ -3425,6 +3426,7 @@ BOOLEAN envioProgramacion(SOCKET *socket_c, TRAMA *ptrTrama)
errorInfo(modulo, msglog);
return (FALSE);
}
+ db.Close();
if(tbl.ISEOF())
return (TRUE); // No existen registros