Browse Source

Don't send notifications to LocalRPC sessions

Fixes #320
patch-1
Neil Booth 7 years ago
parent
commit
ddf65fa9c2
  1. 2
      server/controller.py

2
server/controller.py

@ -286,6 +286,8 @@ class Controller(ServerBase):
# Height notifications are synchronous. Those sessions with # Height notifications are synchronous. Those sessions with
# touched addresses are scheduled for asynchronous completion # touched addresses are scheduled for asynchronous completion
for session in self.sessions: for session in self.sessions:
if isinstance(session, LocalRPC):
continue
session_touched = session.notify(height, touched) session_touched = session.notify(height, touched)
if session_touched is not None: if session_touched is not None:
self.ensure_future(session.notify_async(session_touched)) self.ensure_future(session.notify_async(session_touched))

Loading…
Cancel
Save