restore events after reconnect

dc6966e broke auto
This commit is contained in:
ruti 2024-09-13 09:13:58 +03:00
parent ef12f43c60
commit 9b685ecbb9

View File

@ -331,7 +331,8 @@ int on_desync_again(struct poolhd *pool,
struct eval *val, char *buffer, size_t bfsize)
{
if (val->flag == FLAG_CONN) {
if (mod_etype(pool, val, POLLIN)) {
if (mod_etype(pool, val, POLLIN) ||
mod_etype(pool, val->pair, POLLIN)) {
uniperror("mod_etype");
return -1;
}