Commit 3f7ea0a53b71a92fe13274adaf1582b03ae0798c
1 parent
1156680f
Exists in
master
and in
3 other branches
Funcionando em win64, GTK2
Showing
1 changed file
with
7 additions
and
3 deletions
Show diff stats
telnet.c
@@ -963,9 +963,9 @@ void net_input(H3270 *session) | @@ -963,9 +963,9 @@ void net_input(H3270 *session) | ||
963 | 963 | ||
964 | CHECK_SESSION_HANDLE(session); | 964 | CHECK_SESSION_HANDLE(session); |
965 | 965 | ||
966 | -//#if defined(_WIN32) | ||
967 | -// for (;;) | ||
968 | -//#endif | 966 | +#if defined(_WIN32) |
967 | + for (;;) | ||
968 | +#endif | ||
969 | { | 969 | { |
970 | if (session->sock < 0) | 970 | if (session->sock < 0) |
971 | return; | 971 | return; |
@@ -1003,6 +1003,10 @@ void net_input(H3270 *session) | @@ -1003,6 +1003,10 @@ void net_input(H3270 *session) | ||
1003 | ansi_data = 0; | 1003 | ansi_data = 0; |
1004 | #endif /*]*/ | 1004 | #endif /*]*/ |
1005 | 1005 | ||
1006 | +#if defined(_WIN32) | ||
1007 | + ResetEvent(session->sockEvent); | ||
1008 | +#endif | ||
1009 | + | ||
1006 | #if defined(HAVE_LIBSSL) | 1010 | #if defined(HAVE_LIBSSL) |
1007 | if (session->ssl_con != NULL) | 1011 | if (session->ssl_con != NULL) |
1008 | nr = SSL_read(session->ssl_con, (char *) netrbuf, BUFSZ); | 1012 | nr = SSL_read(session->ssl_con, (char *) netrbuf, BUFSZ); |