diff options
author | dimitri staessens <[email protected]> | 2016-06-16 22:32:06 +0200 |
---|---|---|
committer | dimitri staessens <[email protected]> | 2016-06-16 22:32:06 +0200 |
commit | 0bdec7d84cccf3714804a6bc220fbedf96eccd54 (patch) | |
tree | 0abf4e18a593de01fc00d38910736da8b418180d /src/tools/echo/echo_client.c | |
parent | d222a173f826c6bc4b32c3db8bac7ba610632c8e (diff) | |
download | ouroboros-0bdec7d84cccf3714804a6bc220fbedf96eccd54.tar.gz ouroboros-0bdec7d84cccf3714804a6bc220fbedf96eccd54.zip |
tools: fixed application shutdown
Tools would do a double ap_fini when an error occurred.
Diffstat (limited to 'src/tools/echo/echo_client.c')
-rw-r--r-- | src/tools/echo/echo_client.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/tools/echo/echo_client.c b/src/tools/echo/echo_client.c index 499e36ee..f006273c 100644 --- a/src/tools/echo/echo_client.c +++ b/src/tools/echo/echo_client.c @@ -34,7 +34,6 @@ int client_main() fd = flow_alloc("echo", NULL, NULL); if (fd < 0) { printf("Failed to allocate flow.\n"); - ap_fini(); return -1; } @@ -42,14 +41,12 @@ int client_main() if (result < 0) { printf("Flow allocation refused.\n"); flow_dealloc(fd); - ap_fini(); return -1; } if (flow_write(fd, message, strlen(message) + 1) == -1) { printf("Failed to write SDU.\n"); flow_dealloc(fd); - ap_fini(); return -1; } @@ -57,7 +54,6 @@ int client_main() if (count < 0) { printf("Failed to read SDU.\n"); flow_dealloc(fd); - ap_fini(); return -1; } |