diff --git a/src/lib3270/linux/connect.c b/src/lib3270/linux/connect.c index 2846556..a4bc472 100644 --- a/src/lib3270/linux/connect.c +++ b/src/lib3270/linux/connect.c @@ -30,6 +30,7 @@ #include #include "../private.h" #include +#include #include #include @@ -187,8 +188,6 @@ static void net_connected(H3270 *hSession, int fd unused, LIB3270_IO_FLAG flag u CHECK_SESSION_HANDLE(hSession); memset(&host,0,sizeof(host)); - lib3270_main_iterate(hSession,0); - if(hSession->auto_reconnect_inprogress) return errno = EAGAIN; @@ -211,6 +210,8 @@ static void net_connected(H3270 *hSession, int fd unused, LIB3270_IO_FLAG flag u snprintf(hSession->full_model_name,LIB3270_FULL_MODEL_NAME_LENGTH,"IBM-327%c-%d",hSession->m3279 ? '9' : '8', hSession->model_num); + lib3270_trace_event(hSession,"Reconnecting to %s\n",lib3270_get_url(hSession)); + hSession->ever_3270 = False; hSession->cstate = LIB3270_RESOLVING; diff --git a/src/lib3270/windows/connect.c b/src/lib3270/windows/connect.c index ee37ae5..1d781c6 100644 --- a/src/lib3270/windows/connect.c +++ b/src/lib3270/windows/connect.c @@ -225,8 +225,6 @@ int lib3270_reconnect(H3270 *hSession, int seconds) memset(&host,0,sizeof(host)); - lib3270_main_iterate(hSession,0); - if(hSession->auto_reconnect_inprogress) return errno = EAGAIN; -- libgit2 0.21.2