diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_client.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/test_client.c b/tests/test_client.c index 7103914..8434611 100644 --- a/tests/test_client.c +++ b/tests/test_client.c @@ -303,7 +303,7 @@ cert_filename should point to file that contains client certificate, private key c2ns[0] = c; - while(PICA_event_loop(c2ns, 500) == PICA_OK) + while(PICA_event_loop(c2ns, 500) == PICA_OK && c != NULL) { //puts("event loop..."); if (peerid && connected_to_node == 1 && c2c_active == 0 && c2c_in_progress == 0) @@ -367,10 +367,6 @@ cert_filename should point to file that contains client certificate, private key - - if (chn) - PICA_close_c2c(chn); - if (c) PICA_close_c2n(c); |
