From a65f692ab71b458d63a9ad56cb3dc8a7a0f1f3d1 Mon Sep 17 00:00:00 2001 From: Miguel Portilla Date: Tue, 15 Sep 2015 16:49:03 -0400 Subject: [PATCH] Disable RPC websocket coroutines --- src/ripple/rpc/handlers/RipplePathFind.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ripple/rpc/handlers/RipplePathFind.cpp b/src/ripple/rpc/handlers/RipplePathFind.cpp index 8e9db44366..9e24e71a17 100644 --- a/src/ripple/rpc/handlers/RipplePathFind.cpp +++ b/src/ripple/rpc/handlers/RipplePathFind.cpp @@ -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)