Changeset 202

Show
Ignore:
Timestamp:
03/24/09 18:03:07 (15 years ago)
Author:
bhilburn
Message:

Wrote the policy engine's reset function and properly initialized the
socket in the default constructor.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • vtcross/trunk/src/policy_engines/PolicyEngine.cpp

    r201 r202  
    2525    LOG("Creating Policy Engine.\n"); 
    2626    SML_present = false; 
     27    commandSocketFD = -1; 
    2728    LoadPolicies(); 
    2829} 
     
    173174{ 
    174175    LOG("Resetting Policy Engine.\n"); 
     176 
     177    if(SML_present) 
     178        DeregisterServices(); 
     179    else 
     180        DeregisterComponent(); 
     181 
    175182    SML_present = false; 
    176183    commandSocketFD = -1;