There was an error while loading. Please reload this page.
1 parent be60d6c commit aeb22c2Copy full SHA for aeb22c2
1 file changed
lib/core-net/wsi.c
@@ -118,16 +118,26 @@ struct lws *lws_get_network_wsi(struct lws *wsi) {
118
if (!wsi)
119
return NULL;
120
121
-#if defined(LWS_WITH_HTTP2) || defined(LWS_ROLE_MQTT)
+#if defined(LWS_ROLE_QUIC)
122
+ if (wsi->quic.qn)
123
+ return wsi;
124
+#endif
125
+
126
+#if defined(LWS_WITH_HTTP2) || defined(LWS_ROLE_MQTT) || defined(LWS_ROLE_QUIC)
127
if (!wsi->mux_substream
128
#if defined(LWS_WITH_CLIENT)
129
&& !wsi->client_mux_substream
130
#endif
131
)
132
return wsi;
133
- while (wsi->mux.parent_wsi)
134
+ while (wsi->mux.parent_wsi) {
135
136
137
138
139
wsi = wsi->mux.parent_wsi;
140
+ }
141
142
143
0 commit comments