Don't send pins until a subscription is established, since unpin events never come in that case.

This commit is contained in:
Ian Gulliver
2015-06-07 14:16:54 -07:00
parent 190e1eb182
commit 3995a4d0d9
3 changed files with 5 additions and 7 deletions

2
api.py
View File

@@ -137,7 +137,7 @@ def Subscribe(google_user, client, client_address, instance_id, args):
# Probably a race with the channel opening
return {
'result': 'retry',
'events': subject.GetEvents(messages, last_id, args['subject']),
'events': subject.GetEvents(messages, last_id, args['subject'], pins=False),
}
return {