Commit a1a115bf69eda1bbd90e0a0b2b6e7f0373fc2937
1 parent
b894ccd0
Exists in
master
and in
3 other branches
Atualizando interface libreoffice
Showing
2 changed files
with
7 additions
and
3 deletions
Show diff stats
connect.c
| ... | ... | @@ -82,9 +82,11 @@ static void net_connected(H3270 *hSession, int fd, LIB3270_IO_FLAG flag, void *d |
| 82 | 82 | int err; |
| 83 | 83 | socklen_t len = sizeof(err); |
| 84 | 84 | |
| 85 | - trace("%s write=%p",__FUNCTION__,hSession->ns_write_id); | |
| 86 | - lib3270_remove_poll(hSession->ns_write_id); | |
| 87 | - hSession->ns_write_id = NULL; | |
| 85 | + if(hSession->ns_write_id) { | |
| 86 | + trace("%s write=%p",__FUNCTION__,hSession->ns_write_id); | |
| 87 | + lib3270_remove_poll(hSession->ns_write_id); | |
| 88 | + hSession->ns_write_id = NULL; | |
| 89 | + } | |
| 88 | 90 | |
| 89 | 91 | if(getsockopt(hSession->sock, SOL_SOCKET, SO_ERROR, (char *) &err, &len) < 0) |
| 90 | 92 | { | ... | ... |
iocalls.c
| ... | ... | @@ -628,6 +628,7 @@ void x_except_on(H3270 *h) |
| 628 | 628 | { |
| 629 | 629 | int reading = (h->ns_read_id != NULL); |
| 630 | 630 | |
| 631 | + debug("%s",__FUNCTION__); | |
| 631 | 632 | if(h->ns_exception_id) |
| 632 | 633 | return; |
| 633 | 634 | |
| ... | ... | @@ -638,6 +639,7 @@ void x_except_on(H3270 *h) |
| 638 | 639 | |
| 639 | 640 | if(reading) |
| 640 | 641 | h->ns_read_id = lib3270_add_poll_fd(h,h->sock,LIB3270_IO_FLAG_READ,net_input,0); |
| 642 | + debug("%s",__FUNCTION__); | |
| 641 | 643 | |
| 642 | 644 | } |
| 643 | 645 | ... | ... |