Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Commit

Permalink
Continue last commit, don't crash if bad cache file when reading params
Browse files Browse the repository at this point in the history
  • Loading branch information
falkTX committed Aug 27, 2012
1 parent a75920b commit 92dc399
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion remotevstclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,11 @@ RemoteVSTClient::addFromFd(int fd, PluginRecord &rec)
// std::cerr << rec.parameters << " parameters" << std::endl;

for (int i = 0; i < rec.parameters; ++i) {
tryRead(fd, buffer, 64);
try {
tryRead(fd, buffer, 64);
} catch (RemotePluginClosedException) {
return false; // plugin check failed
}
rec.parameterNames.push_back(std::string(buffer));
float f;
tryRead(fd, &f, sizeof(float));
Expand Down

0 comments on commit 92dc399

Please sign in to comment.