diff options
author | Bart Polot <bart@net.in.tum.de> | 2014-01-30 02:11:09 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2014-01-30 02:11:09 +0000 |
commit | 479d372eba76ec3ebda8acb42a6f23e07009e381 (patch) | |
tree | 45914e1042b547c0d59b1c576469bdd82cb2a66b /src | |
parent | ad9d8a3835ef276b5a4da43130eb650aa795a14a (diff) | |
download | gnunet-479d372eba76ec3ebda8acb42a6f23e07009e381.tar.gz gnunet-479d372eba76ec3ebda8acb42a6f23e07009e381.zip |
- don't show output on stdout in case of error
- terminate after response
Diffstat (limited to 'src')
-rw-r--r-- | src/mesh/gnunet-mesh.c | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/src/mesh/gnunet-mesh.c b/src/mesh/gnunet-mesh.c index 698b1d154..ab15ffbd4 100644 --- a/src/mesh/gnunet-mesh.c +++ b/src/mesh/gnunet-mesh.c | |||
@@ -509,11 +509,20 @@ tunnel_callback (void *cls, | |||
509 | unsigned int estate, | 509 | unsigned int estate, |
510 | unsigned int cstate) | 510 | unsigned int cstate) |
511 | { | 511 | { |
512 | FPRINTF (stdout, "Tunnel %s\n", GNUNET_i2s_full (peer)); | 512 | if (NULL != peer) |
513 | FPRINTF (stdout, "- %u channels\n", channels); | 513 | { |
514 | FPRINTF (stdout, "- %u connections\n", connections); | 514 | FPRINTF (stdout, "Tunnel %s\n", GNUNET_i2s_full (peer)); |
515 | FPRINTF (stdout, "- enc state: %u\n", estate); | 515 | FPRINTF (stdout, "- %u channels\n", channels); |
516 | FPRINTF (stdout, "- con state: %u\n", cstate); | 516 | FPRINTF (stdout, "- %u connections\n", connections); |
517 | FPRINTF (stdout, "- enc state: %u\n", estate); | ||
518 | FPRINTF (stdout, "- con state: %u\n", cstate); | ||
519 | } | ||
520 | if (GNUNET_YES != monitor_connections) | ||
521 | { | ||
522 | GNUNET_SCHEDULER_shutdown(); | ||
523 | } | ||
524 | return; | ||
525 | |||
517 | } | 526 | } |
518 | 527 | ||
519 | 528 | ||