Skip to content
Snippets Groups Projects
Commit 56eb44a1 authored by benjamin.franksen's avatar benjamin.franksen
Browse files

seq: when disconnecting all channels, don't bother maintaining connection and monitor counts

parent adf79b60
No related branches found
No related tags found
No related merge requests found
......@@ -358,18 +358,6 @@ void seq_disconnect(PROG *sp)
if (status != pvStatOK)
errlogSevPrintf(errlogFatal, "seq_disconnect(var '%s', pv '%s'): pvVarDestroy() failure: "
"%s\n", ch->varName, dbch->dbName, pvVarGetMess(dbch->pvid));
/* Clear monitor & connect indicators */
if (dbch->connected)
{
dbch->connected = FALSE;
sp->connectCount--;
}
if (dbch->gotMonitor)
{
dbch->gotMonitor = FALSE;
sp->gotMonitorCount--;
}
}
epicsMutexUnlock(sp->lock);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment