ohio813 / bwhf

Automatically exported from code.google.com/p/bwhf
0 stars 0 forks source link

Autosave and report runs twice on a LastReplay.rep #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Autoscan must be enabled.
2. Simply play a game and let Starcraft save the game.

What is the expected output? What do you see instead?
Expected behavior is the replay is saved once and reported once if hackers 
found. But sometimes The replay is saved twice and if hackers found in it, 
they are reported twice.

The cause is that the LastReplay.rep check may occur during the saving of 
LastReplay.rep. The agent will perform the operations before Starcraft 
would finish saving it. Then it will find that it was modified again since 
the last scan, so it proceeds again.

Original issue reported on code.google.com by icz...@gmail.com on 8 Feb 2009 at 9:19

GoogleCodeExporter commented 9 years ago
Fixed by adding sleep before proceeding to scan after change was detected. 
(revision 
209)

Original comment by icz...@gmail.com on 9 Feb 2009 at 7:59