mirror of
https://github.com/weechat/weechat.git
synced 2026-06-27 13:26:38 +02:00
relay/api: read data on socket only if connected
This commit is contained in:
@@ -533,6 +533,9 @@ relay_remote_network_recv_cb (const void *pointer, void *data, int fd)
|
||||
if (!remote)
|
||||
return WEECHAT_RC_ERROR;
|
||||
|
||||
if (remote->sock < 0)
|
||||
return WEECHAT_RC_OK;
|
||||
|
||||
end_recv = 0;
|
||||
while (!end_recv)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user