mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 14:35:52 +00:00
A surprisingly simple fix to the InfoSub/websocketpp deadlock.
This commit is contained in:
@@ -54,8 +54,17 @@ public:
|
||||
mPingTimer(theApp->getAuxService()), mPinged(false)
|
||||
{ setPingTimer(); }
|
||||
|
||||
void preDestroy()
|
||||
{ // sever connection
|
||||
mConnection.reset();
|
||||
}
|
||||
|
||||
virtual ~WSConnection() { ; }
|
||||
|
||||
static void destroy(boost::shared_ptr< WSConnection<endpoint_type> >)
|
||||
{ // Just discards the reference
|
||||
}
|
||||
|
||||
// Implement overridden functions from base class:
|
||||
void send(const Json::Value& jvObj)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user