Branch: Tag:

2008-03-19

2008-03-19 14:04:39 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed robustness bug in counting of modules.

Rev: server/base_server/configuration.pike:1.648

5:   // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.647 2008/03/17 13:28:53 grubba Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.648 2008/03/19 14:04:39 grubba Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>
4064:    if(!sizeof(module->copies))    m_delete( modules, modname );    +  if (moduleinfo->counter) { +  counters[moduleinfo->counter]--; +  } +     invalidate_cache();       if(!me)
4086:    report_debug("Disabling "+descr+"\n");   #endif    -  if (moduleinfo->counter) { -  counters[moduleinfo->counter]--; -  } -  +     clean_up_for_module( moduleinfo, me );       if( !nodest )