From 664bf35c7d0df97ed3c75980be74701b4627cb2d Mon Sep 17 00:00:00 2001 From: perry.werneck@gmail.com Date: Wed, 8 Feb 2012 09:23:59 +0000 Subject: [PATCH] Corrigindo erro no encerramento do timer pela estrutura de sessao --- latest/src/lib/ctlr.c | 7 ++++--- latest/src/lib/screen.c | 3 +++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/latest/src/lib/ctlr.c b/latest/src/lib/ctlr.c index aaecee3..c73bad8 100644 --- a/latest/src/lib/ctlr.c +++ b/latest/src/lib/ctlr.c @@ -18,7 +18,7 @@ * programa; se não, escreva para a Free Software Foundation, Inc., 59 Temple * Place, Suite 330, Boston, MA, 02111-1307, USA * - * Este programa está nomeado como ctlr.c e possui 2827 linhas de código. + * Este programa está nomeado como ctlr.c e possui - linhas de código. * * Contatos: * @@ -2773,7 +2773,7 @@ void ticking_start(H3270 *session, Boolean anyway) if(session->set_timer) { if(toggled(SHOW_TIMING) || anyway) - session->set_timer(session,-1); + session->set_timer(session,1); } else { @@ -2783,6 +2783,7 @@ void ticking_start(H3270 *session, Boolean anyway) if (!toggled(SHOW_TIMING) && !anyway) return; + status_untiming(session); if (ticking) RemoveTimeOut(tick_id); @@ -2823,7 +2824,7 @@ void toggle_showTiming(struct toggle *t unused, enum toggle_type tt unused) { if (!toggled(SHOW_TIMING)) - status_untiming(NULL); + status_untiming(&h3270); } diff --git a/latest/src/lib/screen.c b/latest/src/lib/screen.c index 5b2b19d..f0019ec 100644 --- a/latest/src/lib/screen.c +++ b/latest/src/lib/screen.c @@ -699,6 +699,9 @@ void status_untiming(H3270 *session) if(callbacks && callbacks->show_timer) callbacks->show_timer(-1); + + if(session->set_timer) + session->set_timer(session,0); } void ring_bell(void) -- libgit2 0.21.2