Ruby: Remove assert in RubyPort retry list logic

Remove the assert when adding a port to the RubyPort retry list.
Instead of asserting, just ignore the added port, since it's
already on the list.
Without this patch, Ruby+detailed fails for even the simplest tests
This commit is contained in:
Jason Power 2015-06-25 11:58:28 -05:00
parent cc813cd5f7
commit 2f3c467883

View file

@ -188,8 +188,8 @@ class RubyPort : public MemObject
private:
void addToRetryList(MemSlavePort * port)
{
assert(std::find(retryList.begin(), retryList.end(), port) ==
retryList.end());
if (std::find(retryList.begin(), retryList.end(), port) !=
retryList.end()) return;
retryList.push_back(port);
}