From 694dcfa3f5b5b8e5ea6930f7ede6d49ae45b3729 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Sun, 27 Feb 2011 13:31:31 +0100 Subject: [PATCH] server: use reds_stream_remove_watch() helper https://bugs.freedesktop.org/show_bug.cgi?id=34795 --- server/reds.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/server/reds.c b/server/reds.c index bdc0601..f35cc6e 100644 --- a/server/reds.c +++ b/server/reds.c @@ -1688,8 +1688,7 @@ static inline void async_read_clear_handlers(AsyncRead *obj) if (!obj->peer->watch) { return; } - core->watch_remove(obj->peer->watch); - obj->peer->watch = NULL; + reds_stream_remove_watch(obj->peer); } static void async_read_handler(int fd, int event, void *data) @@ -1863,8 +1862,7 @@ static void reds_handle_ssl_accept(int fd, int event, void *data) } return; } - core->watch_remove(link->peer->watch); - link->peer->watch = NULL; + reds_stream_remove_watch(link->peer); reds_handle_new_link(link); } -- 1.7.4