Skip to content

Commit 7fe07db

Browse files
committed
Merge pull request facebookarchive#125 from luk/ft-local-reactor-callbacks
Make registered subscription callbacks tied to the reactor instance.
2 parents 705bc2d + 74261cb commit 7fe07db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

instagram/subscriptions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ class SubscriptionVerifyError(SubscriptionError):
1919

2020
class SubscriptionsReactor(object):
2121

22-
callbacks = {}
22+
def __init__(self):
23+
self.callbacks = {}
2324

2425
def _process_update(self, update):
2526
object_callbacks = self.callbacks.get(update['object'], [])

0 commit comments

Comments
 (0)