From a245411ab23f9fa1e5fd43ce5ce0d1391e6ed6e6 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Mon, 25 Nov 2019 12:48:26 +0100 Subject: #924 Fix that only the commands without session were checked Irina reports that the bug fixed in 78a97c5 happens again when you run a command with a session (queue of actions). The bug was introduced in 78a97c5, the goal of the commit was to change the behaviour of respuestaEstandar to always check the result of a command, whether it has a session or not. But, instead of this behaviour, the commit changes respuestaEstandar to only check the commands without session. --- sources/ogAdmServer.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sources/ogAdmServer.cpp b/sources/ogAdmServer.cpp index 5bf2779..9c6fc41 100644 --- a/sources/ogAdmServer.cpp +++ b/sources/ogAdmServer.cpp @@ -1127,6 +1127,11 @@ static bool respuestaEstandar(TRAMA *ptrTrama, char *iph, char *ido, Database db liberaMemoria(der); + if (atoi(res) == ACCION_FALLIDA) { + liberaMemoria(res); + return false; + } + liberaMemoria(res); return true; } -- cgit v1.2.3-18-g5258