The test while-loop back to old behaviour (with Datagram::Wait)
authorJoriPaananen <JoriPaananen@e16421f0-f15b-0410-abcd-98678b794739>
Wed, 28 Oct 2009 13:34:40 +0000 (13:34 +0000)
committerJoriPaananen <JoriPaananen@e16421f0-f15b-0410-abcd-98678b794739>
Wed, 28 Oct 2009 13:34:40 +0000 (13:34 +0000)
git-svn-id: https://ttuki.vtt.fi/svn/p2p-next/TUD/p2tp/trunk@487 e16421f0-f15b-0410-abcd-98678b794739

tests/ledbattest2.cpp

index 6ebb4ab..4fdf7cb 100644 (file)
@@ -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