aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Teich <markus.teich@stusta.mhn.de>2016-08-31 14:46:29 +0200
committerMarkus Teich <markus.teich@stusta.mhn.de>2016-08-31 14:46:29 +0200
commit7b84ab7fe10b0ccf6c5e93bebf06267e18a09bf8 (patch)
tree78b297dee18409439ebb334e5535791d9906b5a7
parent9f0e72f1e8615c9c03222372b2c579471bcce602 (diff)
fix seller auction bootstrap
-rw-r--r--brandt.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/brandt.c b/brandt.c
index 4f5a3f5..685c878 100644
--- a/brandt.c
+++ b/brandt.c
@@ -88,6 +88,8 @@ static void
seller_start (void *arg)
{
struct BRANDT_Auction *ad = (struct BRANDT_Auction *)arg;
+ enum auction_type atype;
+ enum outcome_type outcome;
ad->task = NULL;
@@ -97,6 +99,12 @@ seller_start (void *arg)
/** todo: somehow mark auction as done / ready for cleanup */
return;
}
+
+ atype = ad->m > 0 ? auction_mPlusFirstPrice : auction_firstPrice;
+ outcome = ad->outcome_public ? outcome_public : outcome_private;
+
+ if (handler_prep[atype][outcome][msg_init])
+ handler_prep[atype][outcome][msg_init] (ad);
}