Skip to content

Commit 991d74d

Browse files
committed
Committing updates.
1 parent 54ea2af commit 991d74d

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

WebSocketAPI.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -315,13 +315,14 @@ namespace Apostol {
315315
void CWebSocketAPI::UnloadQueue() {
316316
const auto index = m_Queue.IndexOf(this);
317317
if (index != -1) {
318-
const auto queue = m_Queue[index];
319-
for (int i = 0; i < queue->Count(); ++i) {
320-
auto pHandler = (CObserverHandler *) queue->Item(i);
321-
if (pHandler != nullptr) {
318+
const auto pQueue = m_Queue[index];
319+
for (int i = 0; i < pQueue->Count(); ++i) {
320+
auto pHandler = (CObserverHandler *) pQueue->Item(i);
321+
if (pHandler != nullptr && pHandler->Allow()) {
322322
pHandler->Handler();
323-
if (m_Progress >= m_MaxQueue)
323+
if (m_Progress >= m_MaxQueue) {
324324
break;
325+
}
325326
}
326327
}
327328
}

0 commit comments

Comments
 (0)