1
1

fixed a bug in channel_poll where channel_poll() would return 0 even

when data was available.


git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@155 7dcaeef0-15fb-0310-b436-a5af3365683c
Этот коммит содержится в:
Aris Adamantiadis 2008-05-08 22:12:21 +00:00
родитель 0a7d405b3d
Коммит f084f6e67c

Просмотреть файл

@ -818,7 +818,7 @@ int channel_poll(CHANNEL *channel, int is_stderr){
while(buffer_get_rest_len(buffer)==0 && !channel->remote_eof){ while(buffer_get_rest_len(buffer)==0 && !channel->remote_eof){
r=ssh_handle_packets(channel->session); r=ssh_handle_packets(channel->session);
if(r<=0) if(r<=0)
return r; break;
} }
if(channel->remote_eof) if(channel->remote_eof)
return 1; return 1;