fixed binkp Nopper code for long transfers
This commit is contained in:
parent
f83287b51a
commit
99422c375d
@ -2,7 +2,7 @@
|
|||||||
*
|
*
|
||||||
* File ....................: mbcico/binkp.c
|
* File ....................: mbcico/binkp.c
|
||||||
* Purpose .................: Fidonet binkd protocol
|
* Purpose .................: Fidonet binkd protocol
|
||||||
* Last modification date ..: 04-Oct-2001
|
* Last modification date ..: 17-Oct-2001
|
||||||
* Binkp protocol copyright : Dima Maloff.
|
* Binkp protocol copyright : Dima Maloff.
|
||||||
*
|
*
|
||||||
*****************************************************************************
|
*****************************************************************************
|
||||||
@ -856,6 +856,7 @@ int binkp_batch(file_list *to_send)
|
|||||||
|
|
||||||
while ((RxState != RxDone) || (TxState != TxDone)) {
|
while ((RxState != RxDone) || (TxState != TxDone)) {
|
||||||
|
|
||||||
|
Nopper();
|
||||||
if (binkp_expired()) {
|
if (binkp_expired()) {
|
||||||
Syslog('!', "Binkp: Transfer timeout");
|
Syslog('!', "Binkp: Transfer timeout");
|
||||||
Syslog('b', "Binkp: TxState=%d, RxState=%d, rxlen=%d", TxState, RxState, rxlen);
|
Syslog('b', "Binkp: TxState=%d, RxState=%d, rxlen=%d", TxState, RxState, rxlen);
|
||||||
@ -978,7 +979,6 @@ int binkp_batch(file_list *to_send)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case TxReadSend:
|
case TxReadSend:
|
||||||
Nopper();
|
|
||||||
fseek(txfp, txpos, SEEK_SET);
|
fseek(txfp, txpos, SEEK_SET);
|
||||||
txlen = fread(txbuf, 1, SND_BLKSIZE, txfp);
|
txlen = fread(txbuf, 1, SND_BLKSIZE, txfp);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user