script load fix

This commit is contained in:
Chinmay Gupta 2019-12-05 18:59:31 +05:30
parent dacf3fb30c
commit 4bcd5c38df

View File

@ -617,6 +617,9 @@ bool Handler::preHandleRequest(Request* req, const String& key)
req->setType(Command::ScriptLoad);
req->follow(req);
while (Server* serv = sp->iter(cursor)) {
if (serv->fail()) {
continue;
}
RequestPtr r = RequestAlloc::create();
r->follow(req);
ConnectConnection* s = getConnectConnection(r, serv);