diff --git a/mythtv/programs/mythfrontend/networkcontrol.cpp b/mythtv/programs/mythfrontend/networkcontrol.cpp
index b9a99df..6833fea 100644
a
|
b
|
void NetworkControl::processNetworkControlCommand(NetworkCommand *nc) |
317 | 317 | result = QString("INVALID command '%1', try 'help' for more info") |
318 | 318 | .arg(nc->getArg(0)); |
319 | 319 | |
320 | | nrLock.lock(); |
321 | | networkControlReplies.push_back(new NetworkCommand(nc->getClient(),result)); |
322 | | nrLock.unlock(); |
| 320 | /* |
| 321 | * Differentiate between a null result and an empty result allowing the |
| 322 | * latter to be sent. |
| 323 | */ |
| 324 | if (!result.isNull()) |
| 325 | { |
| 326 | nrLock.lock(); |
| 327 | networkControlReplies.push_back(new NetworkCommand(nc->getClient(),result)); |
| 328 | nrLock.unlock(); |
323 | 329 | |
324 | | notifyDataAvailable(); |
| 330 | notifyDataAvailable(); |
| 331 | } |
325 | 332 | } |
326 | 333 | |
327 | 334 | void NetworkControl::deleteClient(void) |
… |
… |
QString NetworkControl::processPlay(NetworkCommand *nc, int clientID) |
646 | 653 | MythEvent me(message); |
647 | 654 | gCoreContext->dispatch(me); |
648 | 655 | |
649 | | result.clear(); |
| 656 | /* |
| 657 | * Set a null string result so that nothing is sent back to the |
| 658 | * client until a response event is seen. |
| 659 | */ |
| 660 | result = QString(); |
650 | 661 | } |
651 | 662 | else |
652 | 663 | { |
… |
… |
QString NetworkControl::listSchedule(const QString& chanID) const |
1395 | 1406 | |
1396 | 1407 | QString NetworkControl::listRecordings(QString chanid, QString starttime) |
1397 | 1408 | { |
1398 | | QString result; |
| 1409 | QString result = ""; |
1399 | 1410 | MSqlQuery query(MSqlQuery::InitCon()); |
1400 | 1411 | QString queryStr; |
1401 | 1412 | bool appendCRLF = true; |