Bugfix
Showing
1 changed file
with
1 additions
and
3 deletions
... | @@ -288,15 +288,13 @@ list_do (list_t list, list_action_t * action, void *cbdata) | ... | @@ -288,15 +288,13 @@ list_do (list_t list, list_action_t * action, void *cbdata) |
288 | status = iterator_create(&itr, list); | 288 | status = iterator_create(&itr, list); |
289 | if (status) | 289 | if (status) |
290 | return status; | 290 | return status; |
291 | monitor_rdlock (list->monitor); | ||
292 | for (iterator_first (itr); !iterator_is_done (itr); iterator_next (itr)) | 291 | for (iterator_first (itr); !iterator_is_done (itr); iterator_next (itr)) |
293 | { | 292 | { |
294 | void *item; | 293 | void *item; |
295 | iterator_current (itr, &item); | 294 | iterator_current (itr, &item); |
296 | if ((status = action (current->item, cbdata))) | 295 | if ((status = action (item, cbdata))) |
297 | break; | 296 | break; |
298 | } | 297 | } |
299 | monitor_unlock (list->monitor); | ||
300 | iterator_destroy (&itr); | 298 | iterator_destroy (&itr); |
301 | return status; | 299 | return status; |
302 | } | 300 | } | ... | ... |
-
Please register or sign in to post a comment