fix seller auction bootstrap
This commit is contained in:
parent
9f0e72f1e8
commit
7b84ab7fe1
8
brandt.c
8
brandt.c
@ -88,6 +88,8 @@ static void
|
|||||||
seller_start (void *arg)
|
seller_start (void *arg)
|
||||||
{
|
{
|
||||||
struct BRANDT_Auction *ad = (struct BRANDT_Auction *)arg;
|
struct BRANDT_Auction *ad = (struct BRANDT_Auction *)arg;
|
||||||
|
enum auction_type atype;
|
||||||
|
enum outcome_type outcome;
|
||||||
|
|
||||||
ad->task = NULL;
|
ad->task = NULL;
|
||||||
|
|
||||||
@ -97,6 +99,12 @@ seller_start (void *arg)
|
|||||||
/** todo: somehow mark auction as done / ready for cleanup */
|
/** todo: somehow mark auction as done / ready for cleanup */
|
||||||
return;
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user