server missing channel onClose

This commit is contained in:
Michael Davidsaver
2020-04-10 11:08:44 -07:00
parent dd3706aa0f
commit bcea4f032a
4 changed files with 24 additions and 12 deletions
+7 -4
View File
@@ -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();