From bd1b6d4572236472864378238968b3c4cb02afa0 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Thu, 14 Oct 2010 01:44:14 +0300 Subject: fixed miranda lock on filetransfers, encryption/decryption thread timeout set to 10 minutes --- init.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'init.cpp') diff --git a/init.cpp b/init.cpp index 573ef8e..137c879 100644 --- a/init.cpp +++ b/init.cpp @@ -229,11 +229,17 @@ static int OnModulesLoaded(WPARAM wParam,LPARAM lParam) return 0; } - +extern list transfers; extern "C" int __declspec(dllexport) Unload(void) { for (HANDLE hContact = (HANDLE)CallService(MS_DB_CONTACT_FINDFIRST, 0, 0); hContact; hContact = (HANDLE)CallService(MS_DB_CONTACT_FINDNEXT, (WPARAM)hContact, 0)) DBDeleteContactSetting(hContact, szGPGModuleName, "KeyID_Prescense"); + if(!transfers.empty()) + { + for(list::iterator p = transfers.begin(); p != transfers.end(); p++) + if(!(*p).empty()) + DeleteFile((*p).c_str()); + } mir_free(inopentag); mir_free(inclosetag); mir_free(outopentag); -- cgit v1.2.3