struct iovec *iov;
GString *in;
gchar *stop_pattern;
+ struct rspamd_async_watcher *w;
struct event ev;
gint fd;
gint cbref;
{
if (cbd->session) {
rspamd_session_remove_event (cbd->session, lua_tcp_fin, cbd);
+ rspamd_session_watcher_pop (cbd->session, cbd->w);
}
else {
lua_tcp_fin (cbd);
(event_finalizer_t)lua_tcp_fin,
cbd,
g_quark_from_static_string ("lua tcp"));
+ cbd->w = rspamd_session_get_watcher (session);
+ rspamd_session_watcher_push (session);
}
if (rspamd_parse_inet_address (&cbd->addr, host, 0)) {