Skip to content

Commit d757fbb

Browse files
committed
oob/usock: drop message to be sent in process_send()
1 parent 1707341 commit d757fbb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

orte/mca/oob/usock/oob_usock.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,10 @@ static void process_send(int fd, short args, void *cbdata)
316316
goto cleanup;
317317
}
318318

319+
if (MCA_OOB_USOCK_CLOSED == peer->state) {
320+
/* the peer has gone, it will never come back */
321+
goto cleanup;
322+
}
319323
/* add the message to the queue for sending after the
320324
* connection is formed
321325
*/

0 commit comments

Comments
 (0)