From d6b9cfcc3464cdb010cad9c5e19cb07d87828853 Mon Sep 17 00:00:00 2001 From: Miguel Portilla Date: Fri, 18 Sep 2015 14:52:07 -0400 Subject: [PATCH] Enable websocket coroutines --- src/ripple/app/paths/PathRequest.cpp | 3 ++- src/ripple/rpc/handlers/RipplePathFind.cpp | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ripple/app/paths/PathRequest.cpp b/src/ripple/app/paths/PathRequest.cpp index 05efa084e..8a6ddb47e 100644 --- a/src/ripple/app/paths/PathRequest.cpp +++ b/src/ripple/app/paths/PathRequest.cpp @@ -242,7 +242,8 @@ Json::Value PathRequest::doCreate ( if (parseJson (value) != PFR_PJ_INVALID) { valid = isValid (cache); - status = valid ? doUpdate(cache, true) : jvStatus; + if (! hasCompletion()) + status = valid ? doUpdate(cache, true) : jvStatus; } else { diff --git a/src/ripple/rpc/handlers/RipplePathFind.cpp b/src/ripple/rpc/handlers/RipplePathFind.cpp index eda995974..e9843009e 100644 --- a/src/ripple/rpc/handlers/RipplePathFind.cpp +++ b/src/ripple/rpc/handlers/RipplePathFind.cpp @@ -82,8 +82,7 @@ Json::Value doRipplePathFind (RPC::Context& context) Json::Value jvResult; - if (true || // TODO MPORTILLA temp fix to disable broken websocket coroutines - context.app.config().RUN_STANDALONE || + if (context.app.config().RUN_STANDALONE || context.params.isMember(jss::ledger) || context.params.isMember(jss::ledger_index) || context.params.isMember(jss::ledger_hash))