diff --git a/orchagent/aclorch.cpp b/orchagent/aclorch.cpp index a35007c507..7727fc02b5 100644 --- a/orchagent/aclorch.cpp +++ b/orchagent/aclorch.cpp @@ -794,7 +794,6 @@ bool AclRange::remove() AclOrch::AclOrch(DBConnector *db, vector tableNames, PortsOrch *portOrch, MirrorOrch *mirrorOrch) : Orch(db, tableNames), - thread(AclOrch::collectCountersThread, this), m_portOrch(portOrch), m_mirrorOrch(mirrorOrch) { @@ -826,7 +825,6 @@ AclOrch::~AclOrch() m_bCollectCounters = false; m_sleepGuard.notify_all(); - join(); } void AclOrch::update(SubjectType type, void *cntx) diff --git a/orchagent/aclorch.h b/orchagent/aclorch.h index a005a7ec0a..67d7735fad 100644 --- a/orchagent/aclorch.h +++ b/orchagent/aclorch.h @@ -3,7 +3,6 @@ #include #include -#include #include #include #include @@ -228,7 +227,7 @@ inline void split(string str, Iterable& out, char delim = ' ') } } -class AclOrch : public Orch, public Observer, public thread +class AclOrch : public Orch, public Observer { public: AclOrch(DBConnector *db, vector tableNames, PortsOrch *portOrch, MirrorOrch *mirrorOrch);