empty queue on error
This commit is contained in:
parent
2e49fd1220
commit
5af76d874e
|
|
@ -98,6 +98,9 @@ bool Throttle::send(uint64_t id, const Frame &frame)
|
||||||
*/
|
*/
|
||||||
void Throttle::reportError(const char *message)
|
void Throttle::reportError(const char *message)
|
||||||
{
|
{
|
||||||
|
// assign empty queue
|
||||||
|
_queue = {};
|
||||||
|
|
||||||
// if a callback is set, call the handler with the message
|
// if a callback is set, call the handler with the message
|
||||||
if (_errorCallback) _errorCallback(message);
|
if (_errorCallback) _errorCallback(message);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue