diff options
Diffstat (limited to 'src/testing')
-rw-r--r-- | src/testing/gnunet-testing-run-service.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/testing/gnunet-testing-run-service.c b/src/testing/gnunet-testing-run-service.c index b967d7385..b58e6c27d 100644 --- a/src/testing/gnunet-testing-run-service.c +++ b/src/testing/gnunet-testing-run-service.c | |||
@@ -116,8 +116,10 @@ stdin_cb (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
116 | GNUNET_SCHEDULER_shutdown (); | 116 | GNUNET_SCHEDULER_shutdown (); |
117 | return; | 117 | return; |
118 | case 'r': | 118 | case 'r': |
119 | (void) GNUNET_TESTING_peer_stop (my_peer); | 119 | if (GNUNET_OK != GNUNET_TESTING_peer_stop (my_peer)) |
120 | (void) GNUNET_TESTING_peer_start (my_peer); | 120 | LOG (GNUNET_ERROR_TYPE_ERROR, "Failed to stop the peer\n"); |
121 | if (GNUNET_OK != GNUNET_TESTING_peer_start (my_peer)) | ||
122 | LOG (GNUNET_ERROR_TYPE_ERROR, "Failed to start the peer\n"); | ||
121 | printf ("restarted\n"); | 123 | printf ("restarted\n"); |
122 | fflush (stdout); | 124 | fflush (stdout); |
123 | break; | 125 | break; |