diff options
author | Eion Robb <eion@robbmob.com> | 2011-08-23 09:55:25 +0400 |
---|---|---|
committer | Eion Robb <eion@robbmob.com> | 2011-08-23 09:55:25 +0400 |
commit | 9f35213ae0388631b714444aae460dbeda46b105 (patch) | |
tree | 1475d6b4372e7eae5f6613f8ab797bf61fda4cfe | |
parent | a49b690ca4fe7d003a500233985e293c739377d1 (diff) |
Fix for the plugin not connecting to Skype on OSX. Big thanks to beau.croteau for narrowing down the problem to CFRunLoop :)
-rw-r--r-- | skype_messaging.c | 3 | ||||
-rwxr-xr-x | skype_messaging_carbon2.c | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/skype_messaging.c b/skype_messaging.c index aaa7bf3..c343bc7 100644 --- a/skype_messaging.c +++ b/skype_messaging.c @@ -207,8 +207,7 @@ char *skype_send_message(char *message_format, ...) g_thread_yield(); #ifdef __APPLE__ - RunCurrentEventLoop(0); - usleep(1000); + RunCurrentEventLoop(kEventDurationMillisecond); g_static_mutex_lock2(&mutex); if (timeout++ == 10000) diff --git a/skype_messaging_carbon2.c b/skype_messaging_carbon2.c index 28a5394..204d6ef 100755 --- a/skype_messaging_carbon2.c +++ b/skype_messaging_carbon2.c @@ -393,7 +393,7 @@ void SendSkypeCommand(CFStringRef command) CFSTR("SKSkypeAPICommand"), NULL, userInfo, - FALSE); + TRUE); CFRelease(command); CFRelease(id_number); @@ -417,7 +417,7 @@ void DisconnectFromSkype(void) CFSTR("SKSkypeAPIDetachRequest"), NULL, userInfo, - FALSE); + TRUE); client_id = 0; } |