summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOle André Vadla Ravnås <oleavr@gmail.com>2021-05-13 00:26:58 +0200
committerOlivier Crête <olivier.crete@ocrete.ca>2021-11-22 21:53:08 +0000
commit389e7ab7ed571c420b2047cd1b7dc81804d547a2 (patch)
tree7a8c01c1521e67cd63d409ed2488c6feafc066cc
parenta13ac437d828ea584ed6c03f7370b56f678c5565 (diff)
downloadlibnice-389e7ab7ed571c420b2047cd1b7dc81804d547a2.tar.gz
test-io-stream-common: Remove dead code
Due to off-by-one errors. Since the code added above now handles what this code tried to handle, we can go ahead and remove it.
-rw-r--r--tests/test-io-stream-common.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/test-io-stream-common.c b/tests/test-io-stream-common.c
index 22b745d..4833261 100644
--- a/tests/test-io-stream-common.c
+++ b/tests/test-io-stream-common.c
@@ -581,12 +581,6 @@ check_for_termination (TestIOStreamThreadData *data, gsize *recv_count,
data->done = TRUE;
if (data->other->done)
g_main_loop_quit (data->error_loop);
-
- /* If both sides have finished, quit the test main loop. */
- if (*recv_count > expected_recv_count &&
- *other_recv_count > expected_recv_count) {
- g_main_loop_quit (data->error_loop);
- }
}
void