Skip to content

Commit be12601

Browse files
committed
Fix infinite publish exiting early
1 parent 36e4ee3 commit be12601

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/linux/subscribe_publish_sample/subscribe_publish_sample.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ int main(int argc, char **argv) {
240240
publishCount--;
241241
}
242242

243-
if(publishCount == 0) {
243+
if(publishCount == 0 && !infinitePublishFlag) {
244244
break;
245245
}
246246

0 commit comments

Comments
 (0)