set nil after token recycle

This commit is contained in:
xtaci
2019-04-23 21:09:37 +08:00
parent 8b93fb28e5
commit 4c827cfd42
+1
View File
@@ -226,6 +226,7 @@ func (s *Stream) recycleTokens() (n int) {
for k := range s.buffers {
total += len(s.buffers[k])
}
s.buffers = nil
s.bufferLock.Unlock()
return total
}