diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-09-02 16:18:16 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-09-03 10:59:19 +0200 |
| commit | 26c9b836778cbaf9b9ccb9b92e841d7bd6ea2fdc (patch) | |
| tree | 36f589364a3040c46914c1e038e6544bb48e4b7f /src/bitcoin-cli.cpp | |
| parent | libevent: Windows reuseaddr workaround in depends (diff) | |
| download | discoin-26c9b836778cbaf9b9ccb9b92e841d7bd6ea2fdc.tar.xz discoin-26c9b836778cbaf9b9ccb9b92e841d7bd6ea2fdc.zip | |
Move windows socket init to utility function
Diffstat (limited to 'src/bitcoin-cli.cpp')
| -rw-r--r-- | src/bitcoin-cli.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bitcoin-cli.cpp b/src/bitcoin-cli.cpp index 2e094fde2..866c6f2d4 100644 --- a/src/bitcoin-cli.cpp +++ b/src/bitcoin-cli.cpp @@ -301,6 +301,10 @@ int CommandLineRPC(int argc, char *argv[]) int main(int argc, char* argv[]) { SetupEnvironment(); + if (!SetupNetworking()) { + fprintf(stderr, "Error: Initializing networking failed\n"); + exit(1); + } try { if(!AppInitRPC(argc, argv)) |