diff --git a/base/statistics.cc b/base/statistics.cc index 3af764609d..cc7d60b0ba 100644 --- a/base/statistics.cc +++ b/base/statistics.cc @@ -272,6 +272,8 @@ Database::reset() ++i; } + MainBin *orig = MainBin::current(); + list::iterator bi = bins.begin(); list::iterator be = bins.end(); while (bi != be) { @@ -286,6 +288,8 @@ Database::reset() } ++bi; } + + orig->activate(); } void