mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Call from right thread
This commit is contained in:
parent
142934084a
commit
ef3d8754f5
@ -513,6 +513,7 @@ class EventsStore(SQLBaseStore):
|
||||
self._event_fetch_list = []
|
||||
|
||||
if not event_list:
|
||||
self._event_fetch_ongoing -= 1
|
||||
return
|
||||
|
||||
event_id_lists = zip(*event_list)[0]
|
||||
@ -527,7 +528,8 @@ class EventsStore(SQLBaseStore):
|
||||
}
|
||||
|
||||
for ids, d in event_list:
|
||||
d.callback(
|
||||
reactor.callFromThread(
|
||||
d.callback,
|
||||
[
|
||||
row_dict[i] for i in ids
|
||||
if i in row_dict
|
||||
|
Loading…
Reference in New Issue
Block a user