From 5bbb99aef7560cc9c01ccd395bbebbd1e2c256ca Mon Sep 17 00:00:00 2001 From: Phenom Date: Tue, 18 Jul 2017 19:24:32 +0200 Subject: [PATCH] Fix Bad Service Monitor registering. This induce to remove peers in statistics->bandwidth when disc service is off. --- libretroshare/src/rsserver/rsinit.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretroshare/src/rsserver/rsinit.cc b/libretroshare/src/rsserver/rsinit.cc index eba6f679c..7593fc590 100644 --- a/libretroshare/src/rsserver/rsinit.cc +++ b/libretroshare/src/rsserver/rsinit.cc @@ -1596,7 +1596,7 @@ int RsServer::StartupRetroShare() serviceCtrl->registerServiceMonitor(mDisc, mDisc->getServiceInfo().mServiceType); serviceCtrl->registerServiceMonitor(mStatusSrv, mStatusSrv->getServiceInfo().mServiceType); serviceCtrl->registerServiceMonitor(chatSrv, chatSrv->getServiceInfo().mServiceType); - serviceCtrl->registerServiceMonitor(mBwCtrl, mDisc->getServiceInfo().mServiceType); + serviceCtrl->registerServiceMonitor(mBwCtrl, mBwCtrl->getServiceInfo().mServiceType); /**************************************************************************/