tests: defer face deallocation in Face/TestTcp and Face/TestWebSocket
Deallocating face immediately at face closing would cause a Signal object in the transport to be destructed during its execution, which is disallowed. refs #3322 Change-Id: I4eb23f34305cfecf7d2122e94454a97353707818
This commit is contained in:
1 parent
47ab029798
commit
d5134a7cd4
2 files changed
+12
-6
No files matched your search
@@ -171,8 +171,10 @@ public:
|
||||
void
|
||||
face1_onFail()
|
||||
{
|
||||
face1.reset();
|
||||
limitedIo.afterOp();
|
||||
g_io.post([this] {
|
||||
face1.reset();
|
||||
limitedIo.afterOp();
|
||||
});
|
||||
}
|
||||
|
||||
void
|
||||
@@ -214,8 +216,10 @@ public:
|
||||
void
|
||||
face2_onFail()
|
||||
{
|
||||
face2.reset();
|
||||
limitedIo.afterOp();
|
||||
g_io.post([this] {
|
||||
face2.reset();
|
||||
limitedIo.afterOp();
|
||||
});
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -112,8 +112,10 @@ public:
|
||||
void
|
||||
face1_onFail()
|
||||
{
|
||||
face1.reset();
|
||||
limitedIo.afterOp();
|
||||
g_io.post([this] {
|
||||
face1.reset();
|
||||
limitedIo.afterOp();
|
||||
});
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in new issue
Block a user