You're going to need to reset m_dbUpdating when you remove the listener.