Skip to content

Commit 7e13f28

Browse files
committed
bug--
1 parent f486ad2 commit 7e13f28

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/wrench/simgrid_S4U_util/S4U_PendingCommunication.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ namespace wrench {
197197

198198
simgrid::s4u::ActivitySet pending_activities;
199199
for (auto it = pending_comms.begin(); it < pending_comms.end(); it++) {
200-
pending_activities.push((*it)->comm_ptr);
201-
pending_activities.push((*it)->mess_ptr);
200+
if ((*it)->comm_ptr) pending_activities.push((*it)->comm_ptr);
201+
if ((*it)->mess_ptr) pending_activities.push((*it)->mess_ptr);
202202
}
203203
#endif
204204

test/simulation/S4U_CommPortTest.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ class AsynchronousCommunicationTestWMS : public wrench::ExecutionController {
6969
unsigned long index;
7070
if (this == this->test->wms1.get()) {
7171
/** SENDER **/
72-
7372
// Empty set of pending comms
7473
std::vector<wrench::S4U_PendingCommunication *> empty_pending_comms;
7574
try {

0 commit comments

Comments
 (0)