Leont / anyevent-handle-udp

Client/server UDP handles for AnyEvent
5 stars 3 forks source link

Wrong call for on_timeout callback #12

Open Sadrak opened 4 years ago

Sadrak commented 4 years ago

https://github.com/Leont/anyevent-handle-udp/blob/37fa0a006b6c678db8c74414ea01a5187280f25c/lib/AnyEvent/Handle/UDP.pm#L103

$self->_error->(...)

The second -> is wrong, so timeouts are not working: Can't use an undefined value as a subroutine reference at /path/to/AnyEvent/Handle/UDP.pm line 103.

Leont commented 4 years ago

Should be fixed in the PR now