You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
816 B

  1. From d6feb6f574933753371687ee42fa19d0b0d8d777 Mon Sep 17 00:00:00 2001
  2. From: Thomas Kriechbaumer <kriechbaumer@gmail.com>
  3. Date: Tue, 17 Feb 2015 10:08:30 +0000
  4. Subject: [PATCH] fix savebuff timer initialization
  5. closes #868
  6. ---
  7. modules/savebuff.cpp | 4 ++--
  8. 1 file changed, 2 insertions(+), 2 deletions(-)
  9. --- a/modules/savebuff.cpp
  10. +++ b/modules/savebuff.cpp
  11. @@ -93,13 +93,13 @@ public:
  12. else
  13. m_sPassword = CBlowfish::MD5(sArgs);
  14. + AddTimer(new CSaveBuffJob(this, 60, 0, "SaveBuff", "Saves the current buffer to disk every 1 minute"));
  15. +
  16. return( !m_bBootError );
  17. }
  18. virtual bool OnBoot() override
  19. {
  20. - AddTimer(new CSaveBuffJob(this, 60, 0, "SaveBuff", "Saves the current buffer to disk every 1 minute"));
  21. -
  22. CDir saveDir(GetSavePath());
  23. for (CFile* pFile : saveDir) {
  24. CString sName;