diff options
author | defanor <defanor@uberspace.net> | 2020-11-23 09:38:16 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2020-11-23 09:38:16 +0300 |
commit | fbda87a3866678a0bf6acf09acd6f50890583be5 (patch) | |
tree | fa05bc3f59e26139d810e9939e7c2b5d85a9d657 /src/rexmpp.c | |
parent | 4abc8d9b80c66207763bd9b9ea0d09379b610fe3 (diff) |
Add rexmpp_console_on_run
Diffstat (limited to 'src/rexmpp.c')
-rw-r--r-- | src/rexmpp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rexmpp.c b/src/rexmpp.c index 3216817..8be0fc4 100644 --- a/src/rexmpp.c +++ b/src/rexmpp.c @@ -2400,8 +2400,10 @@ rexmpp_err_t rexmpp_run (rexmpp_t *s, fd_set *read_fds, fd_set *write_fds) { } if (s->tcp_state == REXMPP_TCP_CLOSED) { + rexmpp_console_on_run(s, REXMPP_SUCCESS); return REXMPP_SUCCESS; } else { + rexmpp_console_on_run(s, REXMPP_E_AGAIN); return REXMPP_E_AGAIN; } } |