Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mrDoctorWho/vk4xmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Smith <mrdoctorwho@gmail.com>2016-12-29 13:59:21 +0300
committerJohn Smith <mrdoctorwho@gmail.com>2016-12-29 13:59:21 +0300
commitda2aaf28a2664620b6d5b65fb7bf1b2d56353bce (patch)
treeec9bdea904c2858c7324518aca699ca317ecd4e1 /library
parent71e942add919a282d165ddd06fc7a649740e094d (diff)
Correct return codes in longpoll (take 2)
Diffstat (limited to 'library')
-rw-r--r--library/longpoll.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/longpoll.py b/library/longpoll.py
index fd3e700..9510bb4 100644
--- a/library/longpoll.py
+++ b/library/longpoll.py
@@ -311,7 +311,7 @@ class Poll(object):
data = read(opener, user.source)
result = utils.execute(processPollResult, (user, data,))
debug("longpoll: result=%s (jid: %s)", result, user.source)
- if result == CODE_FINE:
+ if result == CODE_SKIP:
return None
# if we set user.vk.pollInitialized to False
# then makePoll() will throw an exception