From 336489068b02f8e9eadcd842e789ca02e46c45bc Mon Sep 17 00:00:00 2001 From: Thulinma Date: Mon, 17 Jan 2011 14:48:21 +0100 Subject: [PATCH] Debugging sessie uit de hel, contd --- Connector_RTMP/main.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Connector_RTMP/main.cpp b/Connector_RTMP/main.cpp index 251161aa..e7e246c0 100644 --- a/Connector_RTMP/main.cpp +++ b/Connector_RTMP/main.cpp @@ -39,7 +39,6 @@ int mainHandler(int connection){ FLV_Pack * tag = 0; //first timestamp set - int lastcheck = getNowMS(); firsttime = getNowMS(); if (doHandshake()){ @@ -82,7 +81,6 @@ int mainHandler(int connection){ case -1: break;//not ready yet default: parseChunk(); - lastcheck = getNowMS(); break; } } @@ -146,7 +144,6 @@ int mainHandler(int connection){ } fwrite(tag->data, tag->len, 1, tmpfile); #endif - lastcheck = getNowMS(); #if DEBUG >= 4 fprintf(stderr, "Sent a tag to %i\n", CONN_fd); #endif @@ -155,10 +152,9 @@ int mainHandler(int connection){ } } //send ACK if we received a whole window - if ((rec_cnt - rec_window_at > rec_window_size) || (getNowMS() - lastcheck > 1)){ + if ((rec_cnt - rec_window_at > rec_window_size)){ rec_window_at = rec_cnt; SendCTL(3, rec_cnt);//send ack (msg 3) - lastcheck = getNowMS(); } } close(CONN_fd);