diff --git a/TODO.txt b/TODO.txt index 35b260a81b..5f37f182de 100644 --- a/TODO.txt +++ b/TODO.txt @@ -40,6 +40,8 @@ David Feature: -------------------------------------------------------------------------------- +- Add convenience variadic functions to JobQueue that do the bind for you + - Consolidate databases - Figure out why we need WAL sqlite mode if we no longer use sqlite for the node store diff --git a/modules/ripple_app/rpc/RPCSub.cpp b/modules/ripple_app/rpc/RPCSub.cpp index 3f7e771a9c..ef7db62c1f 100644 --- a/modules/ripple_app/rpc/RPCSub.cpp +++ b/modules/ripple_app/rpc/RPCSub.cpp @@ -112,8 +112,8 @@ void RPCSub::send (const Json::Value& jvObj, bool broadcast) mSending = true; WriteLog (lsINFO, RPCSub) << boost::str (boost::format ("callRPC start")); - boost::thread (BIND_TYPE (&RPCSub::sendThread, this)).detach (); + + getApp().getJobQueue ().addJob ( + jtCLIENT, "RPCSub::sendThread", BIND_TYPE (&RPCSub::sendThread, this)); } } - -// vim:ts=4