Have RPC connect report if already connected.

This commit is contained in:
Arthur Britto
2012-04-30 13:20:01 -07:00
parent e6586de079
commit 8b40b7ad00

View File

@@ -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";
}