File tree 1 file changed +6
-12
lines changed
src/Profilers/MonitorProfiler/Communication
1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -196,22 +196,16 @@ bool CommandServer::IsControlCommand(const IpcMessage& message)
196
196
197
197
HRESULT CommandServer::ReceiveMessage (std::shared_ptr<IpcCommClient> client, IpcMessage& message)
198
198
{
199
- HRESULT hr = client->Receive (message);
200
- if (FAILED (hr))
201
- {
202
- _logger->Log (LogLevel::Error, _LS (" Unexpected error when receiving data: 0x%08x" ), hr);
203
- }
204
- return hr;
199
+ HRESULT hr;
200
+ IfFailLogRet_ (_logger, client->Receive (message));
201
+ return S_OK;
205
202
}
206
203
207
204
HRESULT CommandServer::SendMessage (std::shared_ptr<IpcCommClient> client, const IpcMessage& message)
208
205
{
209
- HRESULT hr = client->Send (message);
210
- if (FAILED (hr))
211
- {
212
- _logger->Log (LogLevel::Error, _LS (" Unexpected error when sending data: 0x%08x" ), hr);
213
- }
214
- return hr;
206
+ HRESULT hr;
207
+ IfFailLogRet_ (_logger, client->Send (message));
208
+ return S_OK;
215
209
}
216
210
217
211
HRESULT CommandServer::Shutdown (std::shared_ptr<IpcCommClient> client)
You can’t perform that action at this time.
0 commit comments