Bump version and fix megacheck report

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
This commit is contained in:
Ivan Kozlovic
2018-09-05 09:33:01 -06:00
parent eed4fbc145
commit 2ce3aba434
2 changed files with 2 additions and 5 deletions

View File

@@ -35,7 +35,7 @@ var (
const (
// VERSION is the current version for the server.
VERSION = "1.3.0"
VERSION = "1.3.1"
// PROTO is the currently supported protocol.
// 0 was the original

View File

@@ -316,10 +316,7 @@ func (s *Sublist) reduceCacheCount() {
s.cache.Range(func(k, v interface{}) bool {
s.cache.Delete(k.(string))
n := atomic.AddInt32(&s.cacheNum, -1)
if n < slCacheSweep {
return false
}
return true
return n >= slCacheSweep
})
}