FifoBuffer.advance method not throw exception when length==0 (#3641)

* fifobuffer not throw error when length = 0

* Update FIFOBuffer.h

fix indentation

Co-authored-by: Aleksandar Fabijanic <aleks-f@users.noreply.github.com>
This commit is contained in:
JackyWoo
2022-06-21 04:09:40 +08:00
committed by GitHub
parent 37cb890e58
commit 4938185ff0

View File

@@ -334,6 +334,7 @@ public:
/// Should be called AFTER the data
/// was copied into the buffer.
{
if (0 == length) return;
Mutex::ScopedLock lock(_mutex);
if (length > available())