Skip to content

Commit 6ffb557

Browse files
committed
Alters frontend network control to no prevent an empty response to a
query. Fixes #9725. Patch by Gregory Moyer.
1 parent 174207c commit 6ffb557

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

mythtv/programs/mythfrontend/networkcontrol.cpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -317,14 +317,11 @@ void NetworkControl::processNetworkControlCommand(NetworkCommand *nc)
317317
result = QString("INVALID command '%1', try 'help' for more info")
318318
.arg(nc->getArg(0));
319319

320-
if (!result.isEmpty())
321-
{
322-
nrLock.lock();
323-
networkControlReplies.push_back(new NetworkCommand(nc->getClient(),result));
324-
nrLock.unlock();
320+
nrLock.lock();
321+
networkControlReplies.push_back(new NetworkCommand(nc->getClient(),result));
322+
nrLock.unlock();
325323

326-
notifyDataAvailable();
327-
}
324+
notifyDataAvailable();
328325
}
329326

330327
void NetworkControl::deleteClient(void)

0 commit comments

Comments
 (0)