File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
seleniumbase/undetected/cdp_driver Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -610,11 +610,11 @@ async def listener_loop(self):
610610 # Probably an event
611611 try :
612612 event = cdp .util .parse_json_event (message )
613- event_tx = EventTransaction (event )
614- if not self .connection .mapper :
615- self .connection .__count__ = itertools .count (0 )
616- event_tx .id = next (self .connection .__count__ )
617- self .connection .mapper [event_tx .id ] = event_tx
613+ # event_tx = EventTransaction(event)
614+ # if not self.connection.mapper:
615+ # self.connection.__count__ = itertools.count(0)
616+ # event_tx.id = next(self.connection.__count__)
617+ # self.connection.mapper[event_tx.id] = event_tx
618618 except Exception as e :
619619 logger .info (
620620 "%s: %s during parsing of json from event : %s"
@@ -639,12 +639,12 @@ async def listener_loop(self):
639639 or inspect .iscoroutine (callback )
640640 ):
641641 try :
642- await callback (event , self . connection )
642+ asyncio . create_task ( callback (event , self ) )
643643 except TypeError :
644- await callback (event )
644+ asyncio . create_task ( callback (event ) )
645645 else :
646646 try :
647- callback (event , self . connection )
647+ callback (event , self )
648648 except TypeError :
649649 callback (event )
650650 except Exception as e :
You can’t perform that action at this time.
0 commit comments