[Kstars-devel] KDE/kdeedu/kstars/kstars/indi
Jasem Mutlaq
mutlaqja at ikarustech.com
Tue Aug 25 14:19:56 CEST 2009
SVN commit 1015388 by mutlaqja:
Fixing bug where KStars crashes if a remote INDI client is disconnected. QueuedConnection resolved the problem.
BUG: 204964
CCMAIL: kstars-devel at kde.org
M +2 -0 devicemanager.cpp
M +2 -1 indimenu.cpp
--- trunk/KDE/kdeedu/kstars/kstars/indi/devicemanager.cpp #1015387:1015388
@@ -61,6 +61,8 @@
DeviceManager::~DeviceManager()
{
+ serverSocket.close();
+
if (serverProcess)
serverProcess->close();
--- trunk/KDE/kdeedu/kstars/kstars/indi/indimenu.cpp #1015387:1015388
@@ -108,7 +108,7 @@
managers.append(deviceManager);
connect(deviceManager, SIGNAL(newDevice(INDI_D *)), ksw->indiDriver(), SLOT(enableDevice(INDI_D *)));
- connect(deviceManager, SIGNAL(deviceManagerError(DeviceManager *)), this, SLOT(removeDeviceManager(DeviceManager*)));
+ connect(deviceManager, SIGNAL(deviceManagerError(DeviceManager *)), this, SLOT(removeDeviceManager(DeviceManager*)), Qt::QueuedConnection);
return deviceManager;
}
@@ -139,6 +139,7 @@
ksw->indiDriver()->disableDevice(device);
delete managers.takeAt(i);
+ break;
}
}
More information about the Kstars-devel
mailing list