comparison src/event/ngx_event_timer.h @ 144:ef8c87afcfc5

nginx-0.0.1-2003-10-12-20:49:16 import
author Igor Sysoev <igor@sysoev.ru>
date Sun, 12 Oct 2003 16:49:16 +0000
parents d7f606e25b99
children 8dee38ea9117
comparison
equal deleted inserted replaced
143:5526213be452 144:ef8c87afcfc5
17 17
18 ngx_inline static void ngx_event_del_timer(ngx_event_t *ev) 18 ngx_inline static void ngx_event_del_timer(ngx_event_t *ev)
19 { 19 {
20 #if (NGX_DEBUG_EVENT) 20 #if (NGX_DEBUG_EVENT)
21 ngx_connection_t *c = ev->data; 21 ngx_connection_t *c = ev->data;
22 ngx_log_debug(ev->log, "del timer: %d" _ c->fd); 22 ngx_log_debug(ev->log, "del timer: %d:%d" _ c->fd _ ev->write);
23 #endif 23 #endif
24 24
25 if (!ev->timer_next || !ev->timer_prev) { 25 if (!ev->timer_next || !ev->timer_prev) {
26 ngx_log_error(NGX_LOG_ALERT, ev->log, 0, "timer already deleted"); 26 ngx_log_error(NGX_LOG_ALERT, ev->log, 0, "timer already deleted");
27 return; 27 return;
38 } 38 }
39 39
40 if (ev->timer_prev) { 40 if (ev->timer_prev) {
41 ev->timer_prev = NULL; 41 ev->timer_prev = NULL;
42 } 42 }
43
44 ev->timer_set = 0;
43 } 45 }
44 46
45 47
46 #endif /* _NGX_EVENT_TIMER_H_INCLUDED_ */ 48 #endif /* _NGX_EVENT_TIMER_H_INCLUDED_ */