1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Bug 2360 - Scripting: "Message:" command may crash when using Nyquist with Python

This commit is contained in:
Leland Lucius
2020-04-15 10:10:00 -05:00
parent 9f5177056d
commit 9827d4a753
2 changed files with 13 additions and 3 deletions

View File

@@ -128,6 +128,11 @@ int ExecCommand2(wxString *pIn, wxString *pOut)
// Wait until all responses from the command have been received.
// The last response is signalled by an empty line.
//
// LLL: Allow ExecCommand() to process the responses, otherwise
// it will hang waiting for more responses that will not be
// forthcoming.
#if 0
wxString msg = ScriptCommandRelay::ReceiveResponse().GetMessage();
while (msg != wxT("\n"))
{
@@ -135,6 +140,7 @@ int ExecCommand2(wxString *pIn, wxString *pOut)
*pOut += msg + wxT("\n");
msg = ScriptCommandRelay::ReceiveResponse().GetMessage();
}
#endif
return 0;
}