Tell polling clients when we've recreated their connection and they need to resubscribe.

This commit is contained in:
Ian Gulliver
2015-06-15 21:25:00 -07:00
parent 2790b6bce1
commit 0ead64a41d
2 changed files with 11 additions and 2 deletions

2
api.py
View File

@@ -75,6 +75,7 @@ def Poll(google_user, client, client_address, instance_id, args):
return {
'result': 'ok',
'new': instance.newly_created,
'events': events,
}
@@ -161,7 +162,6 @@ def Subscribe(google_user, client, client_address, instance_id, args):
'result': 'access_denied',
}
if not instance or not instance.active:
# Probably a race with the channel opening
return {