From fbfcdd3041b57924730a032363d2720733ecffc0 Mon Sep 17 00:00:00 2001 From: Jamie Reece Wilson Date: Sat, 7 Sep 2024 09:33:46 +0100 Subject: [PATCH] [*] Update send packet --- Source/AuRPCPipe.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/AuRPCPipe.cpp b/Source/AuRPCPipe.cpp index e9457d6..6c67d84 100644 --- a/Source/AuRPCPipe.cpp +++ b/Source/AuRPCPipe.cpp @@ -103,7 +103,7 @@ bool AuRPCPipe::SendPacket(const AuRPCPipePacket &packet) } transactionObject->packet = packet; - transactionObject->view = packet.clientRequest ? packet.clientRequest->GetData() : *packet.serverResponse->message; + transactionObject->view = packet.clientRequest ? packet.clientRequest->GetData() : AuMemoryViewRead(*packet.serverResponse->message); transactionObject->transaction = ioTransaction; transactionObject->transaction->SetCallback(transactionObject); @@ -124,7 +124,7 @@ bool AuRPCPipe::SendPacket(const AuRPCPipePacket &packet) { transactionObject->SendClient(); - if (!transactionObject->transaction->StartWrite(0, AuSPtr(transactionObject->SharedFromThis(), &transactionObject->view))) + if (!transactionObject->transaction->StartWrite(0, AuMemoryViewRead(transactionObject->view, transactionObject->SharedFromThis()))) { transactionObject->Fail(); } @@ -134,7 +134,7 @@ bool AuRPCPipe::SendPacket(const AuRPCPipePacket &packet) { transactionObject->SendClient(); - if (!transactionObject->transaction->StartWrite(0, AuSPtr(transactionObject->SharedFromThis(), &transactionObject->view))) + if (!transactionObject->transaction->StartWrite(0, AuMemoryViewRead(transactionObject->view, transactionObject->SharedFromThis()))) { transactionObject->Fail(); }