@@ -168,6 +168,7 @@ void RoomServer::setSdp(const vts::server::Sdp &sdp) {
168
168
if (!status.ok ()) {
169
169
qDebug () << __FUNCTION__ << " failed:" << status.error_message ().c_str ();
170
170
emit room->onRoomServerError (__FUNCTION__, status.error_message ().c_str ());
171
+ requestHasFailed = true ;
171
172
}
172
173
}
173
174
@@ -181,6 +182,7 @@ void RoomServer::setCandidate(const vts::server::Candidate& candidate) {
181
182
if (!status.ok ()) {
182
183
qDebug () << __FUNCTION__ << " failed:" << status.error_message ().c_str ();
183
184
emit room->onRoomServerError (__FUNCTION__, status.error_message ().c_str ());
185
+ requestHasFailed = true ;
184
186
}
185
187
}
186
188
@@ -197,6 +199,7 @@ void RoomServer::setNat(int type) {
197
199
if (!status.ok ()) {
198
200
qDebug () << __FUNCTION__ << " failed:" << status.error_message ().c_str ();
199
201
emit room->onRoomServerError (__FUNCTION__, status.error_message ().c_str ());
202
+ requestHasFailed = true ;
200
203
}
201
204
}
202
205
@@ -210,6 +213,7 @@ void RoomServer::setRtt(const vts::server::ReqRtt &rtt) {
210
213
if (!status.ok ()) {
211
214
qDebug () << __FUNCTION__ << " failed:" << status.error_message ().c_str ();
212
215
emit room->onRoomServerError (__FUNCTION__, status.error_message ().c_str ());
216
+ requestHasFailed = true ;
213
217
}
214
218
}
215
219
@@ -223,6 +227,7 @@ void RoomServer::setStat(const vts::server::ReqStat &stat) {
223
227
if (!status.ok ()) {
224
228
qDebug () << __FUNCTION__ << " failed:" << status.error_message ().c_str ();
225
229
emit room->onRoomServerError (__FUNCTION__, status.error_message ().c_str ());
230
+ requestHasFailed = true ;
226
231
}
227
232
}
228
233
@@ -239,6 +244,7 @@ void RoomServer::setNick(const string &nick) {
239
244
if (!status.ok ()) {
240
245
qDebug () << __FUNCTION__ << " failed:" << status.error_message ().c_str ();
241
246
emit room->onRoomServerError (__FUNCTION__, status.error_message ().c_str ());
247
+ requestHasFailed = true ;
242
248
}
243
249
}
244
250
@@ -255,6 +261,7 @@ void RoomServer::setTurn(const string &turn) {
255
261
if (!status.ok ()) {
256
262
qDebug () << __FUNCTION__ << " failed:" << status.error_message ().c_str ();
257
263
emit room->onRoomServerError (__FUNCTION__, status.error_message ().c_str ());
264
+ requestHasFailed = true ;
258
265
}
259
266
}
260
267
@@ -268,6 +275,7 @@ void RoomServer::setFrameFormat(const vts::server::FrameFormatSetting &format) {
268
275
if (!status.ok ()) {
269
276
qDebug () << __FUNCTION__ << " failed:" << status.error_message ().c_str ();
270
277
emit room->onRoomServerError (__FUNCTION__, status.error_message ().c_str ());
278
+ requestHasFailed = true ;
271
279
}
272
280
}
273
281
@@ -288,6 +296,7 @@ void RoomServer::setShareInfo(const std::string& gpu, const std::string& capture
288
296
if (!status.ok ()) {
289
297
qDebug () << __FUNCTION__ << " failed:" << status.error_message ().c_str ();
290
298
emit room->onRoomServerError (__FUNCTION__, status.error_message ().c_str ());
299
+ requestHasFailed = true ;
291
300
}
292
301
}
293
302
@@ -325,5 +334,6 @@ void RoomServer::requestIdr(const std::string& reason, const std::string& peer)
325
334
if (!status.ok ()) {
326
335
qDebug () << __FUNCTION__ << " failed:" << status.error_message ().c_str ();
327
336
emit room->onRoomServerError (__FUNCTION__, status.error_message ().c_str ());
337
+ requestHasFailed = true ;
328
338
}
329
339
}
0 commit comments