mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 13:12:03 +00:00
fix socket race
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12605 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -154,7 +154,7 @@ ESLevent *ESLconnection::recvEvent()
|
||||
delete last_event_obj;
|
||||
}
|
||||
|
||||
if (esl_recv_event(&handle, NULL) == ESL_SUCCESS) {
|
||||
if (esl_recv_event(&handle, 1, NULL) == ESL_SUCCESS) {
|
||||
esl_event_t *e = handle.last_ievent ? handle.last_ievent : handle.last_event;
|
||||
if (e) {
|
||||
esl_event_t *event;
|
||||
@@ -176,7 +176,7 @@ ESLevent *ESLconnection::recvEventTimed(int ms)
|
||||
last_event_obj = NULL;
|
||||
}
|
||||
|
||||
if (esl_recv_event_timed(&handle, ms, NULL) == ESL_SUCCESS) {
|
||||
if (esl_recv_event_timed(&handle, ms, 1, NULL) == ESL_SUCCESS) {
|
||||
esl_event_t *e = handle.last_ievent ? handle.last_ievent : handle.last_event;
|
||||
if (e) {
|
||||
esl_event_t *event;
|
||||
|
||||
Reference in New Issue
Block a user