diff options
author | Luo Jinghua <sunmoon1997@gmail.com> | 2009-09-01 22:37:59 +0800 |
---|---|---|
committer | Luo Jinghua <sunmoon1997@gmail.com> | 2009-09-01 22:37:59 +0800 |
commit | 539825afa715e2a7644c3b338407397ff2652b6a (patch) | |
tree | c2b8014d9213b98164b03d20a3775d0b950bb1af | |
parent | 82d347b17f24730b202bd3fac52971e86a93c149 (diff) |
wrapper: fixed a critical bug in client.
This may cause application crash randomly
-rw-r--r-- | wrapper/ppswrapper-client.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/wrapper/ppswrapper-client.c b/wrapper/ppswrapper-client.c index a7c5cba..1e1c42b 100644 --- a/wrapper/ppswrapper-client.c +++ b/wrapper/ppswrapper-client.c @@ -394,10 +394,7 @@ ppsw_client_recv_packet (ppsw_t *super, uint16_t id, ret = -1; break; } - if (!ppsw_client_check_local (super, id, retmsg, retp)) { - ret = 0; - break; - } + pthread_mutex_lock (&self->mutex); } |