network/stack: Add assertion that interface is not UP when deleting.

This commit is contained in:
Augustin Cavalier 2024-10-17 16:55:46 -04:00
parent c8958f4e0c
commit 91f94b828f

View File

@ -480,6 +480,7 @@ Interface::Interface(const char* interfaceName,
Interface::~Interface()
{
TRACE("Interface %p: destructor\n", this);
ASSERT((flags & IFF_UP) == 0);
// Uninitialize the domain datalink protocols