Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset notification string on next() #838

Merged
merged 1 commit into from
Feb 5, 2020

Conversation

J11522
Copy link
Contributor

@J11522 J11522 commented Feb 5, 2020

This change resets the notificationString after parsing its value.
Otherwise hasNext() on the Iterator always returns true after the first occurrence.
This leads to a loop with next() always returning the same event as populate() does not continue scanning.

This change resets the notificationString after parsing its value.
Otherwise hasNext() on the Iterator always returns true after the first occurrence.
@harshavardhana harshavardhana merged commit 5592a57 into minio:master Feb 5, 2020
@J11522 J11522 deleted the listen_notify_loop branch February 25, 2020 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants