This should be easy, simply add a boolean state for whether to stop, and while
with it on L113 instead of 

for(;;) {

Just make sure it defaults to true, and stays on true for the others.

On Tue, 11 Apr 2000, Paul Kappler wrote:
> I would like the FGUI to able to gracefully cancel a file transfer.  Can
> we add a cancel method to conduit?  How would we do that?  Does someone have
> a better idea?
> 
> 
> The not so graceful way I would to do it without any changes is to just call
> conduit.stop();  This would stop the thread.  Could all parties involved
> handle this without leaking?
> 
> 
> Paul Kappler
> 
> 
> _______________________________________________
> Freenet-dev mailing list
> Freenet-dev at lists.sourceforge.net
> http://lists.sourceforge.net/mailman/listinfo/freenet-dev
-- 

Oskar Sandberg

md98-osa at nada.kth.se

#!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)

_______________________________________________
Freenet-dev mailing list
Freenet-dev at lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/freenet-dev

Reply via email to