Use JobQueue for RPCSub instead of boost::thread

This commit is contained in:
Vinnie Falco
2013-07-29 14:33:07 -07:00
parent 103dc6facf
commit 2ed8f7938c
2 changed files with 5 additions and 3 deletions

View File

@@ -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