[mythtv] Java Sockets to Myth - waiting for thread

Nezar Nielsen nezar.nielsen at gmail.com
Wed Feb 23 13:19:34 UTC 2005


On Wed, 23 Feb 2005 23:10:14 +1000, David Whyte <david.whyte at gmail.com> wrote:

> I have attached the Java code incase anyone wanted to take a look, but
> any other pointers would be great.

I'm no java superhero, but seems you're trying to read output wrong,
which should give you an infinite loop?

        try {

            String responseLine = in.readLine();



            while (responseLine != null) {

                System.out.println("Server: " + responseLine);

                ret += responseLine;

            }

        }

It's not like that responseLine is automagically gonna turn into null
if it wasn't initially, since you read it before the loop? :)

-- 
Mvh. Nezar Nielsen
http://fez.dk


More information about the mythtv-dev mailing list