Changeset View
Changeset View
Standalone View
Standalone View
src/bitcoin-cli.cpp
Show First 20 Lines • Show All 595 Lines • ▼ Show 20 Lines | try { | ||||
} else { | } else { | ||||
strPrint = result.write(2); | strPrint = result.write(2); | ||||
} | } | ||||
} | } | ||||
// Connection succeeded, no need to retry. | // Connection succeeded, no need to retry. | ||||
break; | break; | ||||
} catch (const CConnectionFailed &) { | } catch (const CConnectionFailed &) { | ||||
if (fWait) { | if (fWait) { | ||||
MilliSleep(1000); | UninterruptibleSleep(std::chrono::milliseconds{1000}); | ||||
} else { | } else { | ||||
throw; | throw; | ||||
} | } | ||||
} | } | ||||
} while (fWait); | } while (fWait); | ||||
} catch (const std::exception &e) { | } catch (const std::exception &e) { | ||||
strPrint = std::string("error: ") + e.what(); | strPrint = std::string("error: ") + e.what(); | ||||
nRet = EXIT_FAILURE; | nRet = EXIT_FAILURE; | ||||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |