server missing channel onClose
This commit is contained in:
+7
-4
@@ -77,22 +77,25 @@ struct Tester {
|
||||
testShow()<<__func__;
|
||||
|
||||
std::atomic<bool> onFC{false}, onLD{false};
|
||||
epicsEvent done;
|
||||
|
||||
mbox.onFirstConnect([this, &onFC](){
|
||||
testShow()<<__func__;
|
||||
testShow()<<"In onFirstConnect()";
|
||||
|
||||
mbox.open(initial);
|
||||
onFC.store(true);
|
||||
});
|
||||
mbox.onLastDisconnect([this, &onLD](){
|
||||
testShow()<<__func__;
|
||||
mbox.onLastDisconnect([this, &onLD, &done](){
|
||||
testShow()<<"In onLastDisconnect";
|
||||
mbox.close();
|
||||
onLD.store(true);
|
||||
done.signal();
|
||||
});
|
||||
|
||||
serv.start();
|
||||
|
||||
testWait();
|
||||
testOk1(done.wait(5.0));
|
||||
|
||||
serv.stop();
|
||||
|
||||
@@ -200,7 +203,7 @@ void testError()
|
||||
|
||||
MAIN(testinfo)
|
||||
{
|
||||
testPlan(11);
|
||||
testPlan(12);
|
||||
logger_config_env();
|
||||
Tester().loopback();
|
||||
Tester().lazy();
|
||||
|
||||
Reference in New Issue
Block a user