summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-09-12 21:35:41 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-09-12 21:35:41 (GMT)
commitbda8ab1bd40f791265fedf960cbb3bb6055fa03e (patch)
tree89eaf504fc90c08afba894ada665a7088a7ae473
parentab4b451cdf203c82c4b05ff15d3fd5d488bf1728 (diff)
fix comments
-rw-r--r--kstars/indi/drivermanager.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/kstars/indi/drivermanager.cpp b/kstars/indi/drivermanager.cpp
index a7c32b3..e82d5b2 100644
--- a/kstars/indi/drivermanager.cpp
+++ b/kstars/indi/drivermanager.cpp
@@ -446,7 +446,7 @@ void DriverManager::stopDevices(const QList<DriverInfo*> & dList)
if (Options::iNDILogging())
qDebug() << "INDI: Stopping local drivers...";
- // #2 stop server
+ // #1 Disconnect all clients
foreach(DriverInfo *dv, dList)
{
ClientManager *cm = dv->getClientManager();
@@ -467,6 +467,7 @@ void DriverManager::stopDevices(const QList<DriverInfo*> & dList)
}
}
+ // #2 Disconnect all servers
foreach(DriverInfo *dv, dList)
{
ServerManager *sm = dv->getServerManager();
@@ -478,7 +479,7 @@ void DriverManager::stopDevices(const QList<DriverInfo*> & dList)
if (sm->size() == 0)
{
sm->stop();
- servers.removeOne(sm);
+ servers.removeOne(sm);
delete sm;
sm = NULL;
}
@@ -624,7 +625,7 @@ void DriverManager::processClientTermination(ClientManager *client)
if (manager)
{
- servers.removeOne(manager);
+ servers.removeOne(manager);
delete manager;
}