mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
x.vweb, picoev: fix timeout event (#20377)
This commit is contained in:
parent
870e6189db
commit
7c310a1bd7
3 changed files with 49 additions and 7 deletions
|
@ -216,6 +216,12 @@ fn raw_callback(fd int, events int, context voidptr) {
|
|||
$if trace_fd ? {
|
||||
eprintln('timeout ${fd}')
|
||||
}
|
||||
|
||||
if !isnil(pv.raw_cb) {
|
||||
pv.raw_cb(mut pv, fd, events)
|
||||
return
|
||||
}
|
||||
|
||||
pv.close_conn(fd)
|
||||
return
|
||||
} else if events & picoev.picoev_read != 0 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue