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
Этот коммит содержится в:
родитель
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;
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user