Repair broken single instance check

master
Timothy Pearson 12 years ago
parent 5773a132ab
commit fa92a1eb3c

@ -609,7 +609,7 @@ void AuthSocket::commandLoop() {
tempchar = m_databaseServiceTypesCursor->value("single_instance").toInt(); tempchar = m_databaseServiceTypesCursor->value("single_instance").toInt();
if (tempchar != 0) { if (tempchar != 0) {
// Verify that service is not already in use // Verify that service is not already in use
m_databaseActivityCursor->select(TQString("station=%1 AND serviceid=%2").arg(m_databaseStationsCursor->value("pk").toInt()).arg(sid)); m_databaseActivityCursor->select(TQString("station=%1 AND serviceid=%2").arg(m_stationID).arg(sid));
while (m_databaseActivityCursor->next()) { while (m_databaseActivityCursor->next()) {
if (m_databaseActivityCursor->value("username").toString() != "") { if (m_databaseActivityCursor->value("username").toString() != "") {
available = false; available = false;

Loading…
Cancel
Save