Skip to content

Commit

Permalink
Properly set the timer owner in Libevent2UDPConnection. Fixes #1429.
Browse files Browse the repository at this point in the history
(cherry picked from commit 09d16c6)
  • Loading branch information
s-ludwig committed Feb 20, 2016
1 parent 6997dc3 commit 999cf33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/vibe/core/drivers/libevent2.d
Original file line number Diff line number Diff line change
Expand Up @@ -1010,8 +1010,8 @@ final class Libevent2UDPConnection : UDPConnection {
size_t tm = size_t.max;
if (timeout >= 0.seconds && timeout != Duration.max) {
tm = m_driver.createTimer(null);
m_driver.m_timers.getUserData(tm).owner = Task.getThis();
m_driver.rearmTimer(tm, timeout, false);
m_driver.acquireTimer(tm);
}

acquire();
Expand Down

0 comments on commit 999cf33

Please sign in to comment.