diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index 489ea938c..59b9a1c0d 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -482,7 +482,9 @@ void iguana_bundlepurgefiles(struct iguana_info *coin,struct iguana_bundle *bp) { for (j=m=0; jn; j++) { + portable_mutex_lock(&coin->RTmutex); iguana_RTrawdata(coin,bp->hashes[j],0,&recvlen,&numtx,0); // delete file + portable_mutex_unlock(&coin->RTmutex); if ( iguana_peerfname(coin,&hdrsi,GLOBAL_TMPDIR,fname,ipbits,bp->hashes[j],zero,1,1) >= 0 ) { if ( (fp= fopen(fname,"rb")) != 0 )