diff options
author | Jeremy White <jwhite@codeweavers.com> | 2015-01-19 08:46:35 -0600 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2015-10-09 18:14:19 +0200 |
commit | 264410e0275103319b4e466d151aa409717bc2ca (patch) | |
tree | 2a11fe1b450c5e1cba4620d5aac0c45dd3e49da7 | |
parent | e9bb3d2af900c52991b5d3d168908a1375acbb1f (diff) |
Bug fix: delete the reader entry after queueing an event, not before
As far as I can tell, the vreader_remove_reader function is not presently in
use anywhere; I have an upcoming patch set that uses it.
Signed-off-by: Jeremy White <jwhite@codeweavers.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
-rw-r--r-- | src/vreader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vreader.c b/src/vreader.c index 5029f76..bd662ac 100644 --- a/src/vreader.c +++ b/src/vreader.c @@ -533,8 +533,8 @@ vreader_remove_reader(VReader *reader) } vreader_dequeue(vreader_list, current_entry); vreader_list_unlock(); - vreader_list_entry_delete(current_entry); vevent_queue_vevent(vevent_new(VEVENT_READER_REMOVE, reader, NULL)); + vreader_list_entry_delete(current_entry); return VREADER_OK; } |