Skip to content

Commit

Permalink
Wire up some more
Browse files Browse the repository at this point in the history
  • Loading branch information
oleavr committed Oct 2, 2024
1 parent e1baf2a commit ef680fd
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions frida_tools/tracer.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,22 +413,20 @@ async def process_messages(self) -> None:
result = await handle_request(request["payload"])
except Exception as e:
if request_id is not None:
await self.post({
"type": "request:error",
"id": request_id,
"payload": {
"message": str(e),
"stack": traceback.format_exc(),
await self.post(
{
"type": "request:error",
"id": request_id,
"payload": {
"message": str(e),
"stack": traceback.format_exc(),
},
}
})
)
continue

if request_id is not None:
await self.post({
"type": "request:result",
"id": request_id,
"payload": result
})
await self.post({"type": "request:result", "id": request_id, "payload": result})

async def post(self, message: dict) -> None:
await self.socket.send(json.dumps(message))
Expand Down

0 comments on commit ef680fd

Please sign in to comment.