diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-11-01 20:23:28 +0200 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-11-01 20:23:28 +0200 |
commit | c2c8b96313665152d56efcb0f7bc6fa5888d6a59 (patch) | |
tree | 7d04a0730104df1a3c0f3b69e4bcd7b295ad0d60 /utilities.cpp | |
parent | e5439085cf086c64bd6e98a8c85fc02fa35fd9e2 (diff) |
fixes
Diffstat (limited to 'utilities.cpp')
-rw-r--r-- | utilities.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/utilities.cpp b/utilities.cpp index c1bb062..619cded 100644 --- a/utilities.cpp +++ b/utilities.cpp @@ -963,10 +963,11 @@ void send_encrypted_msgs_thread(HANDLE hContact) while(true)
{
char *key = UniGetContactSettingUtf(hContact, szGPGModuleName, "GPGPubKey", "");
- if(!key[0])
+ while(!isContactSecured(hContact))
boost::this_thread::sleep(boost::posix_time::seconds(1));
- else if(!hcontact_data[hContact].msgs_to_send.empty())
+ if(!hcontact_data[hContact].msgs_to_send.empty())
{
+ boost::this_thread::sleep(boost::posix_time::seconds(1));
list<string>::iterator end = hcontact_data[hContact].msgs_to_send.end();
for(list<string>::iterator p = hcontact_data[hContact].msgs_to_send.begin(); p != end; ++p)
{
|