I'm currently using sleep() and polling to see if a channel has closed. Is there any way to do this with wait() or with Condition's await() instead? It'd save me from making the tradeoff between responsiveness and compute cycles.
Thanks, Dave --- void waitForChannelToClose() throws InterruptedException { while(!fChannel.isClosed()) { Thread.sleep(100); } } ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ JSch-users mailing list JSch-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsch-users