[telepathy-qt4/master] PendingChannelRequest: Added comment on cancel method explaining why it fails if CR already finished.
Andre Moreira Magalhaes (andrunko)
andre.magalhaes at collabora.co.uk
Thu Jun 11 10:15:11 PDT 2009
---
TelepathyQt4/pending-channel-request.cpp | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/TelepathyQt4/pending-channel-request.cpp b/TelepathyQt4/pending-channel-request.cpp
index 53c7aa3..653b52c 100644
--- a/TelepathyQt4/pending-channel-request.cpp
+++ b/TelepathyQt4/pending-channel-request.cpp
@@ -141,6 +141,7 @@ ChannelRequestPtr PendingChannelRequest::channelRequest() const
PendingOperation *PendingChannelRequest::cancel()
{
if (isFinished()) {
+ // CR has already succeeded or failed, so let's just fail here
return new PendingFailure(this, "org.freedesktop.DBus.UnknownMethod",
"ChannnelRequest already finished");
}
--
1.5.6.5
More information about the telepathy-commits
mailing list