diff --git a/src/extension/timer.h b/src/extension/timer.h
index b9649e899e7cce5c5c296716261ab311d915d79f..ebae62b245136c368844721f8bc4cb6540b2aa4b 100644 (file)
--- a/src/extension/timer.h
+++ b/src/extension/timer.h
static bool timer_started;
/** \brief Is this extension locked from being unloaded? */
- bool locked;
+ int locked;
/** \brief Next entry in the list */
ExpirationTimer * next;
/** \brief When this timer expires */
public:
ExpirationTimer(Extension * in_extension);
- ~ExpirationTimer(void);
+ virtual ~ExpirationTimer(void);
void touch (void);
- void lock (void) { locked = true; };
- void unlock (void) { locked = false; };
+ void lock (void) { locked++; };
+ void unlock (void) { locked--; };
/** \brief Set the timeout variable */
static void set_timeout (long in_seconds) { timeout = in_seconds; };