Merge pull request #296 from dryabov/patch-4

Faster shutdown
This commit is contained in:
miguelfreitas 2014-11-11 17:49:20 -02:00
commit ce897c884d

View File

@ -965,7 +965,7 @@ static string JSONRPCExecBatch(const Array& vReq)
void ServiceConnection(AcceptedConnection *conn) void ServiceConnection(AcceptedConnection *conn)
{ {
bool fRun = true; bool fRun = true;
while (fRun) while (fRun && !ShutdownRequested())
{ {
int nProto = 0; int nProto = 0;
map<string, string> mapHeaders; map<string, string> mapHeaders;