Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/EionRobb/skype4pidgin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEion Robb <eion@robbmob.com>2008-02-04 07:35:33 +0300
committerEion Robb <eion@robbmob.com>2008-02-04 07:35:33 +0300
commitfcc7c9eea46c6a2a2e8e0430c536e61e3922e523 (patch)
tree304a48ac92c6d1c5ec3fb8ece4d8c1536a388d2d /skype_messaging_x11.c
parenta7871394c51598176351770753beedebf885aac3 (diff)
Trying for better speed improvements in message handling
Diffstat (limited to 'skype_messaging_x11.c')
-rw-r--r--skype_messaging_x11.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/skype_messaging_x11.c b/skype_messaging_x11.c
index 9e158cd..63965e2 100644
--- a/skype_messaging_x11.c
+++ b/skype_messaging_x11.c
@@ -199,8 +199,11 @@ receive_message_loop(void)
}
if (len < 20)
- {
- g_thread_create((GThreadFunc)skype_message_received, (void *)g_string_free(msg, FALSE), FALSE, NULL);
+ {
+ if (msg->str[0] == '#')
+ g_thread_create((GThreadFunc)skype_message_received, (void *)g_string_free(msg, FALSE), FALSE, NULL);
+ else
+ purple_timeout_add(1, (GSourceFunc)skype_handle_received_message, (gpointer)g_string_free(msg, FALSE));
XFlush(disp);
}
}