From 860fbe0b53b0bcb26b7b9ddeda1fc5b8cda8e577 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Sun, 26 Aug 2012 23:17:20 +0200 Subject: [PATCH] Fixed controller crash when deleting old stream data. --- src/controller.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controller.cpp b/src/controller.cpp index a6b01c10..85ade168 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -257,6 +257,7 @@ void CheckStats(JSON::Value & stats){ for (JSON::ObjIter jit = stats.ObjBegin(); jit != stats.ObjEnd(); jit++){ if (currTime - lastBuffer[jit->first] > 120){ stats.removeMember(jit->first); + return; } } }