Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def send_or_delay_packet(self, receiver_idb_path, packet):
# Is a client for this IDB alive? Just send message.
client = self.server.idb_client_map.get(receiver_idb_path)
if client:
client.send_packet(packet)
# Nope, put message into backlog and launch a fresh idaq.
else:
self.server.queue_delayed_packet(receiver_idb_path, packet)
from . import launch_ida_gui_instance
launch_ida_gui_instance(receiver_idb_path)