diff options
-rw-r--r-- | Userland/Libraries/LibIPC/Connection.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibIPC/Connection.h b/Userland/Libraries/LibIPC/Connection.h index 66bcab9a42..fe0b19f1f7 100644 --- a/Userland/Libraries/LibIPC/Connection.h +++ b/Userland/Libraries/LibIPC/Connection.h @@ -118,12 +118,12 @@ public: } template<typename RequestType, typename... Args> - OwnPtr<typename RequestType::ResponseType> send_sync(Args&&... args) + NonnullOwnPtr<typename RequestType::ResponseType> send_sync(Args&&... args) { post_message(RequestType(forward<Args>(args)...)); auto response = wait_for_specific_endpoint_message<typename RequestType::ResponseType, PeerEndpoint>(); VERIFY(response); - return response; + return response.release_nonnull(); } template<typename RequestType, typename... Args> |