mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Have RPC connect report if already connected.
This commit is contained in:
@@ -389,7 +389,7 @@ Json::Value RPCServer::doConnect(Json::Value& params)
|
||||
}
|
||||
|
||||
if(!theApp->getConnectionPool().connectTo(strIp, iPort))
|
||||
return JSONRPCError(500, "Unable to connect");
|
||||
return "connected";
|
||||
|
||||
return "connecting";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user