Преглед изворни кода

remove all current uploads from shared cache in case of quit

tags/v0.5
Brice Figureau пре 17 година
родитељ
комит
3f524b8c34
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1
    1
      ngx_http_uploadprogress_module.c

+ 1
- 1
ngx_http_uploadprogress_module.c Прегледај датотеку

826
                        "uploadprogress clean: scanning %08XD (req done %ui) timeout at %T",
826
                        "uploadprogress clean: scanning %08XD (req done %ui) timeout at %T",
827
                        node->key, up->done, up->timeout);
827
                        node->key, up->done, up->timeout);
828
 
828
 
829
-        if (up->done && up->timeout < now) {
829
+        if ( (up->done && up->timeout < now) || (ngx_quit || ngx_terminate || ngx_exiting) ) {
830
             up->next->prev = up->prev;
830
             up->next->prev = up->prev;
831
             up->prev->next = up->next;
831
             up->prev->next = up->next;
832
 
832
 

Loading…
Откажи
Сачувај