diff options
Diffstat (limited to 'src/main_gui.cpp')
| -rw-r--r-- | src/main_gui.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp index 6cd8b75..55ca8c6 100644 --- a/src/main_gui.cpp +++ b/src/main_gui.cpp | |||
| @@ -509,6 +509,14 @@ int main(int argc, char* argv[]) | |||
| 509 | 509 | ||
| 510 | ParseStartupArguments(argc, argv); | 510 | ParseStartupArguments(argc, argv); |
| 511 | 511 | ||
| 512 | #ifdef _WIN32 | ||
| 513 | // Set by the GUI "Restart Now" button: give the previous instance a moment | ||
| 514 | // to release the network port and the block-index files before this one | ||
| 515 | // opens them, so a relaunch does not race the process it is replacing. | ||
| 516 | if (arg(argc, argv, "/restartwait") || arg(argc, argv, "-restartwait")) | ||
| 517 | Sleep(2500); | ||
| 518 | #endif | ||
| 519 | |||
| 512 | // Hidden self-test helper. It must run before LoadWallet(): several | 520 | // Hidden self-test helper. It must run before LoadWallet(): several |
| 513 | // storage-sanity scenarios deliberately make wallet.dat unsafe to load. | 521 | // storage-sanity scenarios deliberately make wallet.dat unsafe to load. |
| 514 | string strSelfTestMutateWallet = | 522 | string strSelfTestMutateWallet = |