Bug 1626278: Make this test-case function dispatch to STS like it is supposed to. r=mjf

Differential Revision: https://phabricator.services.mozilla.com/D97173
This commit is contained in:
Byron Campen [:bwc] 2020-11-19 19:08:17 +00:00
Родитель 7a97aae8de
Коммит 2a7961a0ac
1 изменённых файлов: 10 добавлений и 4 удалений

Просмотреть файл

@ -1,4 +1,4 @@
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
@ -484,9 +484,15 @@ class TransportTestPeer : public sigslot::has_slots<> {
}
void DisconnectDestroyFlow() {
loopback_->Disconnect();
disconnect_all(); // Disconnect from the signals;
flow_ = nullptr;
test_utils_->sts_target()->Dispatch(
NS_NewRunnableFunction(
__func__,
[this] {
loopback_->Disconnect();
disconnect_all(); // Disconnect from the signals;
flow_ = nullptr;
}),
NS_DISPATCH_SYNC);
}
void SetDtlsAllowAll() {