Removing price guarantees after successful transaction with player.

This commit is contained in:
marcins78@gmail.com
2013-03-19 13:16:26 +00:00
parent e40694233d
commit fbea744aa2

View File

@@ -165,6 +165,7 @@ public class MerchantService {
if (!success)
throw new MerchantException("Unable to remove the sold card from your collection");
_priceGuarantees.remove(player.getName());
_merchant.cardBought(blueprintId, currentTime, price);
} finally {
lock.unlock();
@@ -187,6 +188,7 @@ public class MerchantService {
if (!success)
throw new MerchantException("Unable to remove required currency from your collection");
_priceGuarantees.remove(player.getName());
_merchant.cardSold(blueprintId, currentTime, price);
} finally {
lock.unlock();