Bug: Double card trade in

From WarfishWiki

Jump to: navigation, search

[edit] Problem

In certain situations double card trade-ins occurred which caused a couple related problems.

  1. in turn based player was awarded twice the armies and "server error" would appear when trying to view the game history as it tried to incorrectly interpret 2 trades (the second one of which the user didn't have the cards for).
  2. in BAO the game would return "server error" and the game would be stuck in "Game processing"

[edit] Analysis/Fix

Looks like this occurred when the servers were under high load and the trade card button was reloaded twice because the site seemed unresponsive. I've added a lock across the critical section here to avoid simultaneous execution across that portion of the code. Now the second process should fail instead of executing a second time. --Steven 23:04, 28 January 2009 (UTC)


Return to Recent Enhancements or Go to Enhancement Suggestions

Personal tools