mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 11:06:50 +01:00
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:
@@ -334,6 +334,7 @@ public:
|
|||||||
/// Should be called AFTER the data
|
/// Should be called AFTER the data
|
||||||
/// was copied into the buffer.
|
/// was copied into the buffer.
|
||||||
{
|
{
|
||||||
|
if (0 == length) return;
|
||||||
Mutex::ScopedLock lock(_mutex);
|
Mutex::ScopedLock lock(_mutex);
|
||||||
|
|
||||||
if (length > available())
|
if (length > available())
|
||||||
|
|||||||
Reference in New Issue
Block a user