aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormilo <milo@r0ot.me>2011-04-20 04:14:43 +0200
committermilo <milo@r0ot.me>2011-05-02 17:01:59 +0200
commiteb5fedb6851acd12c8b0b5b533ec38dfea927600 (patch)
tree9f0ff68d51c55c151c12d7fa62b598c16cf2180d
parent1979c14aac47137e7af782e7e49ec43f910b2b00 (diff)
downloadlibssh-eb5fedb6851acd12c8b0b5b533ec38dfea927600.tar.gz
libssh-eb5fedb6851acd12c8b0b5b533ec38dfea927600.tar.xz
libssh-eb5fedb6851acd12c8b0b5b533ec38dfea927600.zip
[event] don't use sessions in event anymore
(cherry picked from commit 89d0fdbbde4cf48e783a8ee7c5907c51a83e207b)
-rw-r--r--src/poll.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/poll.c b/src/poll.c
index 48991e9c..5faef06d 100644
--- a/src/poll.c
+++ b/src/poll.c
@@ -857,25 +857,11 @@ int ssh_event_add_session(ssh_event event, ssh_session session) {
*/
int ssh_event_dopoll(ssh_event event, int timeout) {
int rc;
-#ifdef WITH_SERVER
- ssh_session session;
- struct ssh_iterator *iterator;
-#endif
if(event == NULL || event->ctx == NULL) {
return SSH_ERROR;
}
rc = ssh_poll_ctx_dopoll(event->ctx, timeout);
-#ifdef WITH_SERVER
- if(rc == SSH_OK) {
- iterator = ssh_list_get_iterator(event->sessions);
- while(iterator != NULL) {
- session = (ssh_session)iterator->data;
- ssh_execute_message_callbacks(session);
- iterator = iterator->next;
- }
- }
-#endif
return rc;
}