Merge pull request #120 from DVSwitch/master

Fix remote command speech responses
This commit is contained in:
Jonathan Naylor
2020-10-08 11:29:23 +01:00
committed by GitHub
+9 -3
View File
@@ -421,8 +421,10 @@ void CNXDNGateway::run()
if (reflector == NULL && currentId != 9999U) {
LogMessage("Unlinked from reflector %u by remote command", currentId);
if (voice != NULL)
if (voice != NULL) {
voice->unlinked();
voice->eof();
}
remoteNetwork.writeUnlink(currentAddr, currentPort, currentId);
remoteNetwork.writeUnlink(currentAddr, currentPort, currentId);
@@ -440,8 +442,10 @@ void CNXDNGateway::run()
LogMessage("Linked to reflector %u by remote command", currentId);
if (voice != NULL)
if (voice != NULL) {
voice->linkedTo(currentId);
voice->eof();
}
remoteNetwork.writePoll(currentAddr, currentPort, currentId);
remoteNetwork.writePoll(currentAddr, currentPort, currentId);
@@ -463,8 +467,10 @@ void CNXDNGateway::run()
LogMessage("Linked to reflector %u by remote command", currentId);
if (voice != NULL)
if (voice != NULL) {
voice->linkedTo(currentId);
voice->eof();
}
remoteNetwork.writePoll(currentAddr, currentPort, currentId);
remoteNetwork.writePoll(currentAddr, currentPort, currentId);