commit 0e0822dd3e6e7b3c3a1ff1f2501fe40481932429 parent 58cb96811cb46ab88ef2cffca87fd45df76f78ae Author: Evgeny Grin (Karlson2k) <k2k@narod.ru> Date: Sun, 19 Feb 2017 19:14:16 +0300 call_handlers(): call read/write handlers only if connections is in read/write mode Diffstat:
| M | src/microhttpd/daemon.c | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c @@ -895,9 +895,9 @@ call_handlers (struct MHD_Connection *con, #endif /* HTTPS_SUPPORT */ if (!force_close) { - if (read_ready) + if (MHD_EVENT_LOOP_INFO_READ == con->event_loop_info && read_ready) con->read_handler (con); - if (write_ready) + if (MHD_EVENT_LOOP_INFO_WRITE == con->event_loop_info && write_ready) con->write_handler (con); } else