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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user