diff --git a/resip/stack/ConnectionManager.cxx b/resip/stack/ConnectionManager.cxx index b233ac186..5bdd0a628 100644 --- a/resip/stack/ConnectionManager.cxx +++ b/resip/stack/ConnectionManager.cxx @@ -244,7 +244,8 @@ unsigned int ConnectionManager::gc(uint64_t relThreshold, unsigned int maxToRemove) { uint64_t curTimeMs = Timer::getTimeMs(); - uint64_t threshold = curTimeMs - relThreshold; + uint64_t threshold = curTimeMs > relThreshold ? curTimeMs - relThreshold : 0; // Ensure we don't underflow + DebugLog(<< "recycling connections not used in last " << relThreshold/1000.0 << " seconds"); // Look through non-flow-timer connections and close those using the passed in relThreshold diff --git a/resip/stack/Helper.cxx b/resip/stack/Helper.cxx index c9742cf38..1d114f042 100644 --- a/resip/stack/Helper.cxx +++ b/resip/stack/Helper.cxx @@ -2275,12 +2275,12 @@ unique_ptr Helper::getSdp(Contents* tree) if (sdp) { - DebugLog(<< "Got sdp" << endl); + //DebugLog(<< "Got sdp"); return unique_ptr(static_cast(sdp->clone())); } } - //DebugLog(<< "No sdp" << endl); + //DebugLog(<< "No sdp"); return nullptr; }