Skip to content

Commit

Permalink
Fix for crash when waiting on an unlocked mutex - Thanks to vince.ber…
Browse files Browse the repository at this point in the history
…nat for the patch :) - Fixes issue EionRobb#239
  • Loading branch information
EionRobb committed Sep 29, 2014
1 parent c03b896 commit 9aec0db
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions skype_messaging.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,9 @@ char *skype_send_message(char *message_format, ...)
//wait for message for a maximum of 10 seconds
g_get_current_time(&endtime);
g_time_val_add(&endtime, 10 * G_USEC_PER_SEC);
g_static_mutex_lock2(&mutex);
condition_result = g_cond_timed_wait(condition, g_static_mutex_get_mutex2(&mutex), &endtime);

//g_cond_timed_wait already locks this mutex
//g_static_mutex_lock2(&mutex);

if(!condition_result)
#endif
#endif
Expand Down

0 comments on commit 9aec0db

Please sign in to comment.