diff options
Diffstat (limited to 'src/bank-lib/taler-fakebank-run.c')
-rw-r--r-- | src/bank-lib/taler-fakebank-run.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/bank-lib/taler-fakebank-run.c b/src/bank-lib/taler-fakebank-run.c index ff9dcc17c..282e39501 100644 --- a/src/bank-lib/taler-fakebank-run.c +++ b/src/bank-lib/taler-fakebank-run.c | |||
@@ -23,9 +23,9 @@ | |||
23 | * @author Marcello Stanisci | 23 | * @author Marcello Stanisci |
24 | * @author Christian Grothoff | 24 | * @author Christian Grothoff |
25 | */ | 25 | */ |
26 | |||
27 | #include "platform.h" | 26 | #include "platform.h" |
28 | #include "taler_fakebank_lib.h" | 27 | #include "taler_fakebank_lib.h" |
28 | #include "taler_mhd_lib.h" | ||
29 | 29 | ||
30 | /** | 30 | /** |
31 | * Number of threads to use (-n) | 31 | * Number of threads to use (-n) |
@@ -111,11 +111,18 @@ run (void *cls, | |||
111 | "Maximum transaction history in RAM set to default of %llu\n", | 111 | "Maximum transaction history in RAM set to default of %llu\n", |
112 | ram); | 112 | ram); |
113 | } | 113 | } |
114 | { | ||
115 | enum TALER_MHD_GlobalOptions go; | ||
116 | |||
117 | go = TALER_MHD_GO_NONE; | ||
118 | if (0 != connection_close) | ||
119 | go |= TALER_MHD_GO_FORCE_CONNECTION_CLOSE; | ||
120 | TALER_MHD_setup (go); | ||
121 | } | ||
114 | fb = TALER_FAKEBANK_start2 ((uint16_t) port, | 122 | fb = TALER_FAKEBANK_start2 ((uint16_t) port, |
115 | currency_string, | 123 | currency_string, |
116 | ram, | 124 | ram, |
117 | num_threads, | 125 | num_threads); |
118 | (0 != connection_close)); | ||
119 | if (NULL == fb) | 126 | if (NULL == fb) |
120 | { | 127 | { |
121 | ret = EXIT_FAILURE; | 128 | ret = EXIT_FAILURE; |