fix small typo

git-svn-id: file:///home/ps/projects/distributor/trunk@2 4c72226d-0938-4c61-bee9-4ad40ed711b9
This commit is contained in:
ps 2011-01-20 22:27:40 +00:00
parent 7db1f7a975
commit 660f52decc

2
dist.c
View file

@ -115,7 +115,7 @@ void handle_new_connection(unsigned long p_connid,int fd)
if(can_read(&fd,1,0)) { fdread=fd; fdwrite=fdin; }
else { fdread=fdin; fdwrite=fd; }
bytesread=read(fdread,databuffer,sizeof(databuffer));
if(bytesread<=0||write(fdwrite,databuffer,bytesread)<=0);
if(bytesread<=0||write(fdwrite,databuffer,bytesread)<=0)
{
closeskt(fd);
closeskt(fdin);