Browse Source

A quick hack until fixing the freezing properly

patch-2
Neil Booth 6 years ago
parent
commit
33befb8e6b
  1. 8
      electrumx/server/session.py

8
electrumx/server/session.py

@ -567,9 +567,11 @@ class SessionManager(object):
for hashX in set(hc).intersection(touched):
del hc[hashX]
async with TaskGroup() as group:
for session in self.sessions:
await group.spawn(session.notify(touched, height_changed))
# FIXME
async with ignore_after(15):
async with TaskGroup() as group:
for session in self.sessions:
await group.spawn(session.notify(touched, height_changed))
def add_session(self, session):
self.sessions.add(session)

Loading…
Cancel
Save