Experimental/Matts Toy 2019/SallyRide/src/main/cpp/subsystems/LightingSubsystem.cpp
// Destructor, used to clean up when the Subsystem goes away.
Destructor, used to clean up when the Subsystem goes away.
Destructor used to clean up when the Subsystem goes away .
LightingSubsystem::~LightingSubsystem() {
  if (udpSocket != -1) {
    ::close(udpSocket);
    udpSocket = -1;
  }
}
LightingSubsystem :: ~ LightingSubsystem ( ) { if ( udpSocket != -1 ) { :: close ( udpSocket ) ; udpSocket = -1 ; } }
Destructor, used to clean up when the Subsystem goes away.
Destructor used to clean up when the Subsystem goes away .
// Be polite, and close the socket now that we're done with it.