Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Claus Reibenstein <4spamersonly@kabelmail.de> Newsgroups: de.comp.lang.java Subject: =?UTF-8?Q?Re:_Thread.sleep=28=29_h=c3=a4lt_den_Thread_nicht_an?= Date: Fri, 31 Jul 2020 21:57:42 +0200 Lines: 13 Message-ID: References: Reply-To: c.reibenstein@kabelmail.de Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net tMbcQ7Jwrtb+pvj0Zi5ucgjdR3uulIjG55VgxswrRkB3xLKco= Cancel-Lock: sha1:tHFe8yk+ARIiwa/dLMIg+A4bL6Q= User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 SeaMonkey/2.53.1 In-Reply-To: Xref: csiph.com de.comp.lang.java:13352 Ralf Schneider schrieb am 17.07.2020 um 16:00: > while (socket.isConnected() == false) { ¯¯¯¯¯¯¯¯ Bei solchen Konstruktionen packt mich immer das Grausen :-( Profis schreiben da so: while (!socket.isConnected()) { Gruß Claus