Mercurial > wow > mailopener
comparison Modules/FailSafe.lua @ 11:fb952805d8b7
A FailSafe timer will now be stopped when another is started to prevent multiple running simultaneously and eventually warning you for nothing.
#Debug Removed debug messages for MAIL_INBOX_UPDATES, our own addon messages should do.
#Debug MO_OPENING_MAIL debug messages will now include the mail id.
| author | Zerotorescue |
|---|---|
| date | Thu, 09 Sep 2010 16:32:15 +0200 |
| parents | f10c8a083d2a |
| children | 90d58723ac0a |
comparison
equal
deleted
inserted
replaced
| 8:1b2d819b4fa8 | 11:fb952805d8b7 |
|---|---|
| 54 end | 54 end |
| 55 | 55 |
| 56 function FailSafe:MO_OPENING_MAIL() | 56 function FailSafe:MO_OPENING_MAIL() |
| 57 -- Single mail being opened | 57 -- Single mail being opened |
| 58 | 58 |
| 59 self:CancelTimer(self.tmrTimeout, true); -- insurance | |
| 59 self.tmrTimeout = self:ScheduleTimer("Continue", self.db.profile.timeout); | 60 self.tmrTimeout = self:ScheduleTimer("Continue", self.db.profile.timeout); |
| 60 end | 61 end |
| 61 | 62 |
| 62 function FailSafe:MO_MAIL_EMPTIED() | 63 function FailSafe:MO_MAIL_EMPTIED() |
| 63 -- Single mail has been opened | 64 -- Single mail has been opened |
