File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -321,6 +321,11 @@ namespace Aws
321
321
{
322
322
std::promise<RpcError> errorPromise;
323
323
errorPromise.set_value ({baseError, 0 });
324
+ if (baseError == EVENT_STREAM_RPC_NULL_PARAMETER)
325
+ {
326
+ const std::lock_guard<std::recursive_mutex> lock (m_stateMutex);
327
+ m_clientState = DISCONNECTED;
328
+ }
324
329
return errorPromise.get_future ();
325
330
}
326
331
@@ -353,6 +358,8 @@ namespace Aws
353
358
" A CRT error occurred while attempting to establish the connection: %s" ,
354
359
Crt::ErrorDebugString (crtError));
355
360
errorPromise.set_value ({EVENT_STREAM_RPC_CRT_ERROR, crtError});
361
+ const std::lock_guard<std::recursive_mutex> lock (m_stateMutex);
362
+ m_clientState = DISCONNECTED;
356
363
return errorPromise.get_future ();
357
364
}
358
365
else
You can’t perform that action at this time.
0 commit comments