From e5b9a22a2075f9227032544aa1b5a99fb7b7e956 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Thu, 19 May 2016 16:27:03 -0300 Subject: [PATCH] Removendo warning desnecessário quando uma sessão de transferência de arquivos é fechada mais de uma vez. --- src/lib3270/ft.c | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/src/lib3270/ft.c b/src/lib3270/ft.c index 52421e9..21d2d91 100644 --- a/src/lib3270/ft.c +++ b/src/lib3270/ft.c @@ -79,10 +79,12 @@ static void set_ft_state(H3270FT *session, LIB3270_FT_STATE state); H3270FT * get_ft_handle(H3270 *hSession) { + /* if(!hSession->ft) { popup_an_error(hSession,_( "Unexpected call to %s: No active filetransfer" ),__FUNCTION__); } + */ return hSession->ft; } @@ -139,6 +141,8 @@ static void set_ft_state(H3270FT *session, LIB3270_FT_STATE state); CHECK_SESSION_HANDLE(hSession); ft = get_ft_handle(hSession); + if(!ft) + return EINVAL; if (ft->state == LIB3270_FT_STATE_RUNNING) { -- libgit2 0.21.2