Unverified Commit abc9d7d5 authored by kladko's avatar kladko

SKALE-3274-restart-enclave

parent 216690cf
......@@ -130,12 +130,12 @@ reinitEnclave(); \
#define RESTART_END_POINTER \
} \
if (status != SGX_SUCCESS || *errStatus != 0) { \
if (status != SGX_SUCCESS || *errStatus == 3) { \
spdlog::error(__FUNCTION__);\
spdlog::error("Restarting sgx on status errStatus... {} {}", status, *errStatus); \
reinitEnclave(); \
} \
} while ((status != SGX_SUCCESS || *errStatus != 0) && __ATTEMPTS__ < 2);
} while ((status != SGX_SUCCESS || *errStatus == 3) && __ATTEMPTS__ < 2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment