From b4bc333ff8aff6833b2866bd2a24879e49cd0dba Mon Sep 17 00:00:00 2001 From: JoriPaananen Date: Wed, 28 Oct 2009 13:34:40 +0000 Subject: [PATCH] The test while-loop back to old behaviour (with Datagram::Wait) git-svn-id: https://ttuki.vtt.fi/svn/p2p-next/TUD/p2tp/trunk@487 e16421f0-f15b-0410-abcd-98678b794739 --- tests/ledbattest2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ledbattest2.cpp b/tests/ledbattest2.cpp index 6ebb4ab..4fdf7cb 100644 --- a/tests/ledbattest2.cpp +++ b/tests/ledbattest2.cpp @@ -69,7 +69,7 @@ TEST(Datagram,LedbatTest) { SOCKET sock2read; tint wait_time = 100*TINT_MSEC; - while ((sock2read = Datagram::Wait(2,socks,wait_time)) != -1) { + while (sock2read = Datagram::Wait(2,socks,wait_time)) { tint now = Datagram::Time(); if (sock2read==ack_sock) { Datagram data(ack_sock); // send an acknowledgement -- 2.20.1