Added a check for sock_connected so not endlessly trying to read

Otherwise was going into an endless reading loop because user code only asked for a short part of the total amount of data sent.
This commit is contained in:
SRGDamia1
2017-10-30 13:49:54 -04:00
parent 3ae668b215
commit 1f5b7a0249
2 changed files with 20 additions and 9 deletions