Skip to content

Commit b668b78

Browse files
authored
DPL: make proxy honor state changes (#3801)
1 parent 43e1d0a commit b668b78

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Framework/Core/src/ExternalFairMQDeviceProxy.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ void sendOnChannel(FairMQDevice& device, FairMQParts& messages, std::string cons
6969
// TODO: we might want to treat this error condition some levels higher up, but for
7070
// the moment its an appropriate solution. The important thing is not to drop
7171
// messages and to be informed about the congestion.
72-
while (device.Send(messages, channel, index, timeout) < 0) {
72+
while (device.NewStatePending() == false && device.Send(messages, channel, index, timeout) < 0) {
7373
if (timeout == 0) {
7474
timeout = 1;
7575
} else if (timeout < maxTimeout) {

0 commit comments

Comments
 (0)