Commit 664bf35c7d0df97ed3c75980be74701b4627cb2d

Authored by perry.werneck@gmail.com
1 parent b13018e6
Exists in master

Corrigindo erro no encerramento do timer pela estrutura de sessao

latest/src/lib/ctlr.c
@@ -18,7 +18,7 @@ @@ -18,7 +18,7 @@
18 * programa; se não, escreva para a Free Software Foundation, Inc., 59 Temple 18 * programa; se não, escreva para a Free Software Foundation, Inc., 59 Temple
19 * Place, Suite 330, Boston, MA, 02111-1307, USA 19 * Place, Suite 330, Boston, MA, 02111-1307, USA
20 * 20 *
21 - * Este programa está nomeado como ctlr.c e possui 2827 linhas de código. 21 + * Este programa está nomeado como ctlr.c e possui - linhas de código.
22 * 22 *
23 * Contatos: 23 * Contatos:
24 * 24 *
@@ -2773,7 +2773,7 @@ void ticking_start(H3270 *session, Boolean anyway) @@ -2773,7 +2773,7 @@ void ticking_start(H3270 *session, Boolean anyway)
2773 if(session->set_timer) 2773 if(session->set_timer)
2774 { 2774 {
2775 if(toggled(SHOW_TIMING) || anyway) 2775 if(toggled(SHOW_TIMING) || anyway)
2776 - session->set_timer(session,-1); 2776 + session->set_timer(session,1);
2777 } 2777 }
2778 else 2778 else
2779 { 2779 {
@@ -2783,6 +2783,7 @@ void ticking_start(H3270 *session, Boolean anyway) @@ -2783,6 +2783,7 @@ void ticking_start(H3270 *session, Boolean anyway)
2783 2783
2784 if (!toggled(SHOW_TIMING) && !anyway) 2784 if (!toggled(SHOW_TIMING) && !anyway)
2785 return; 2785 return;
  2786 +
2786 status_untiming(session); 2787 status_untiming(session);
2787 if (ticking) 2788 if (ticking)
2788 RemoveTimeOut(tick_id); 2789 RemoveTimeOut(tick_id);
@@ -2823,7 +2824,7 @@ void @@ -2823,7 +2824,7 @@ void
2823 toggle_showTiming(struct toggle *t unused, enum toggle_type tt unused) 2824 toggle_showTiming(struct toggle *t unused, enum toggle_type tt unused)
2824 { 2825 {
2825 if (!toggled(SHOW_TIMING)) 2826 if (!toggled(SHOW_TIMING))
2826 - status_untiming(NULL); 2827 + status_untiming(&h3270);
2827 } 2828 }
2828 2829
2829 2830
latest/src/lib/screen.c
@@ -699,6 +699,9 @@ void status_untiming(H3270 *session) @@ -699,6 +699,9 @@ void status_untiming(H3270 *session)
699 699
700 if(callbacks && callbacks->show_timer) 700 if(callbacks && callbacks->show_timer)
701 callbacks->show_timer(-1); 701 callbacks->show_timer(-1);
  702 +
  703 + if(session->set_timer)
  704 + session->set_timer(session,0);
702 } 705 }
703 706
704 void ring_bell(void) 707 void ring_bell(void)