mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Solve some safety issues with RPCs (#1127)
Java would never properly dispose, and C++'s were easy to respond after disposing. We now return a bool if the call was successful or not.
This commit is contained in:
committed by
Peter Johnson
parent
6aebba5452
commit
8eafe7f325
@@ -99,7 +99,7 @@ class RpcServer : public IRpcServer,
|
||||
SendResponseFunc send_response,
|
||||
unsigned int rpc_uid) override;
|
||||
|
||||
void PostRpcResponse(unsigned int local_id, unsigned int call_uid,
|
||||
bool PostRpcResponse(unsigned int local_id, unsigned int call_uid,
|
||||
wpi::StringRef result);
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user