mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
ss: avoid POLL-POLL transition
This commit is contained in:
parent
ca3f639edd
commit
890766083d
1 changed files with 6 additions and 3 deletions
|
@ -1617,9 +1617,12 @@ _lws_ss_request_tx(lws_ss_handle_t *h)
|
|||
return LWSSSSRET_OK;
|
||||
|
||||
h->seqstate = SSSEQ_TRY_CONNECT;
|
||||
r = lws_ss_event_helper(h, LWSSSCS_POLL);
|
||||
if (r)
|
||||
return r;
|
||||
if (h->prev_ss_state != LWSSSCS_POLL) { /* possible if we were created
|
||||
* before we could action it */
|
||||
r = lws_ss_event_helper(h, LWSSSCS_POLL);
|
||||
if (r)
|
||||
return r;
|
||||
}
|
||||
|
||||
/*
|
||||
* Retries operate via lws_ss_request_tx(), explicitly ask for a
|
||||
|
|
Loading…
Add table
Reference in a new issue