oh, ignore me, just scrolled down! Interrupt is not the solution, just closing the socket. Thanks for the link.
On 28 January 2010 22:15, Edward Hinchliffe <[email protected]> wrote: > from the page you quoted: > " More precisely, if the thread is blocked at one of the methods > Object.wait, Thread.join, or Thread.sleep, it receives > anInterruptedException, thus terminating the blocking method > prematurely." > > I'm aware of sending an interrupt while it's asleep, but if I'm > blocking on a bufferedreader.readLine(); it won't get interrupted. > Is there any way around this? > > On 28 January 2010 21:50, theSmith <[email protected]> wrote: >> >> Send it an interrupt and handle it appropriately. >> http://articles.techrepublic.com.com/5100-10878_11-5144546.html >> >> -theSmith >> >> On Jan 28, 3:59 pm, redders <[email protected]> wrote: >> > I have a thread listening on a TCP port. When there's nothing coming >> > in on that port, the thread blocks. This is fine, and the behaviour I >> > want, but how do I kill said thread while it's blocking? >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

