Skip to content

Commit 03b47d5

Browse files
committed
Drop checking programState when loading a program
When loading a program from an absolute path or a subdirectory instead of a file being directly in /programs (or /ursim/programs in the case of URSim) the check "programState" will only return the filename without the path while we compare it against the path that was requested to load. However, that second check should not be necessary, as the "load" call will already make sure that the program is loading correctly.
1 parent 976678c commit 03b47d5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ur/dashboard_client.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,7 @@ bool DashboardClient::commandBrakeRelease()
246246
bool DashboardClient::commandLoadProgram(const std::string& program_file_name)
247247
{
248248
assertVersion("5.0.0", "1.4", "load <program>");
249-
return sendRequest("load " + program_file_name + "", "(?:Loading program: ).*(?:" + program_file_name + ").*") &&
250-
waitForReply("programState", "STOPPED " + program_file_name);
249+
return sendRequest("load " + program_file_name + "", "(?:Loading program: ).*(?:" + program_file_name + ").*");
251250
}
252251

253252
bool DashboardClient::commandLoadInstallation(const std::string& installation_file_name)

0 commit comments

Comments
 (0)