File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -567,7 +567,8 @@ async def _dispatch(self, msg):
567567 msg_type = msg .get ('T' )
568568 if msg_type == 'n' :
569569 symbols = msg .get ('symbols' , [])
570- # A news article could be unrelated to any symbols, resulting in an empty symbols list. Those news articles
570+ # A news article could be unrelated to any symbols,
571+ # resulting in an empty symbols list. Those news articles
571572 # should still be dispatched to the wildcard event handler.
572573 if not symbols :
573574 symbols .append ('*' )
@@ -579,6 +580,8 @@ async def _dispatch(self, msg):
579580
580581 if handler is not None :
581582 await handler (self ._cast (msg_type , msg ))
583+ # For a single message, only call the handler once
584+ break
582585 else :
583586 await super ()._dispatch (msg )
584587
You can’t perform that action at this time.
0 commit comments