Browse Source

Attempt failover when bitcoind socket is invalidated

master
Con Kolivas 10 years ago
parent
commit
f26273f34f
  1. 5
      src/generator.c

5
src/generator.c

@ -237,6 +237,11 @@ retry:
} }
} while (selret < 1); } while (selret < 1);
if (unlikely(cs->fd < 0)) {
LOGWARNING("Bitcoind socket invalidated, will atempt failover");
goto reconnect;
}
sockd = accept(us->sockd, NULL, NULL); sockd = accept(us->sockd, NULL, NULL);
if (sockd < 0) { if (sockd < 0) {
LOGEMERG("Failed to accept on generator socket"); LOGEMERG("Failed to accept on generator socket");

Loading…
Cancel
Save