let the command dispatch call the command directly instead just scheduling it.
authorChristian Thaeter <ct@pipapo.org>
Sun, 7 Oct 2007 07:02:27 +0000 (09:02 +0200)
committerChristian Thaeter <ct@pipapo.org>
Sun, 7 Oct 2007 07:02:27 +0000 (09:02 +0200)
The event parameter for the callaback function is set to 0 for this inital call,
the function may just schedule itself or take any other action.

rxpd.c

diff --git a/rxpd.c b/rxpd.c
index 43e8bbc..bccb96d 100644 (file)
--- a/rxpd.c
+++ b/rxpd.c
@@ -550,11 +550,11 @@ rxpd_connection_parse_cmd (int fd, short event, void* ptr)
 #define RXPD_CMD(cmd)                                                           \
 case RXPD_CMD_##cmd:                                                            \
   event_set (&self->ev, self->fd, EV_READ, rxpd_connection_cmd_##cmd, self);    \
+  rxpd_connection_cmd_##cmd (fd, 0, ptr);                                       \
   break;
       RXPD_COMMANDS
 #undef RXPD_CMD
     }
-  rxpd_connection_schedule (self);
 }