Skip to content

Commit

Permalink
Do not proceeed next frame at send failure of previous frame
Browse files Browse the repository at this point in the history
  • Loading branch information
miniway committed Nov 9, 2015
1 parent ec41b08 commit 9fc9b9e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/zeromq/ZMsg.java
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ public boolean send(Socket socket, boolean destroy)
while (i.hasNext()) {
ZFrame f = i.next();
ret = f.sendAndKeep(socket, (i.hasNext()) ? ZFrame.MORE : 0);
if (!ret) {
break;
}
}
if (destroy) {
destroy();
Expand Down

0 comments on commit 9fc9b9e

Please sign in to comment.