Disable RPC websocket coroutines

This commit is contained in:
Miguel Portilla
2015-09-15 16:49:03 -04:00
committed by Edward Hennis
parent 44e4a50050
commit a65f692ab7

View File

@@ -82,7 +82,8 @@ Json::Value doRipplePathFind (RPC::Context& context)
Json::Value jvResult;
if (getConfig().RUN_STANDALONE ||
if (true || // TODO MPORTILLA temp fix to disable broken websocket coroutines
getConfig().RUN_STANDALONE ||
context.params.isMember(jss::ledger) ||
context.params.isMember(jss::ledger_index) ||
context.params.isMember(jss::ledger_hash))
@@ -110,7 +111,9 @@ Json::Value doRipplePathFind (RPC::Context& context)
{
jvResult = context.app.getPathRequests().makeLegacyPathRequest (
request, callback, lpLedger, context.params);
callback();
assert(callback);
if (! request && callback)
callback();
});
if (request)