[telepathy-qt4/master] ClientRegistrar: Check if QQueue is empty before calling head.
Andre Moreira Magalhaes (andrunko)
andre.magalhaes at collabora.co.uk
Tue May 5 10:45:08 PDT 2009
---
TelepathyQt4/client-registrar.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/TelepathyQt4/client-registrar.cpp b/TelepathyQt4/client-registrar.cpp
index 1e2957c..c63f323 100644
--- a/TelepathyQt4/client-registrar.cpp
+++ b/TelepathyQt4/client-registrar.cpp
@@ -86,7 +86,7 @@ void ClientHandlerAdaptor::onHandleChannelsCallFinished()
void ClientHandlerAdaptor::processHandleChannelsQueue()
{
- if (mProcessingHandleChannels) {
+ if (mProcessingHandleChannels || mHandleChannelsQueue.isEmpty()) {
return;
}
@@ -257,7 +257,7 @@ void ClientHandlerRequestsAdaptor::RemoveRequest(
void ClientHandlerRequestsAdaptor::processAddRequestQueue()
{
- if (mProcessingAddRequest) {
+ if (mProcessingAddRequest || mAddRequestQueue.isEmpty()) {
return;
}
--
1.5.6.5
More information about the telepathy-commits
mailing list