diff options
author | chai <chaifix@163.com> | 2018-08-08 00:14:57 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-08-08 00:14:57 +0800 |
commit | 4afb418bf779400005f5452776ec5e4df1d2eda6 (patch) | |
tree | 6c1677f14b492ad20f3a915ff4b45db69cd5ff71 | |
parent | f743358eb6868cd651b28bf67fbcc9c9e3967e5c (diff) |
*update
-rw-r--r-- | libjin/Time/Timer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libjin/Time/Timer.cpp b/libjin/Time/Timer.cpp index cfdb4bd..9d18248 100644 --- a/libjin/Time/Timer.cpp +++ b/libjin/Time/Timer.cpp @@ -28,11 +28,11 @@ namespace time if (!(*it)->process(ms)) { Timer* t = *it; - timers.erase(it); delete t; - return; + it = timers.erase(it); } - ++it; + else + ++it; } } |