@Override protected void doUnbind() throws CommunicationException, InterruptedException {
  if (SNMP_ADAPTOR_LOGGER.isLoggable(Level.FINER)) {
    SNMP_ADAPTOR_LOGGER.logp(Level.FINER,dbgTag,"doUnbind","Finally close the socket");
  }
synchronized (this) {
    if (socket != null) {
      socket.close();
      socket=null;
    }
  }
  closeTrapSocketIfNeeded();
  closeInformSocketIfNeeded();
}

@ Override protected void doUnbind ( ) throws CommunicationException , InterruptedException { if ( SNMP_ADAPTOR_LOGGER . isLoggable ( Level . FINER ) ) { SNMP_ADAPTOR_LOGGER . logp ( Level . FINER , dbgTag , "doUnbind" , "Finally close the socket" ) ; } synchronized ( this ) { if ( socket != null ) { socket . close ( ) ; socket = null ; } } closeTrapSocketIfNeeded ( ) ; closeInformSocketIfNeeded ( ) ; }
closes the datagram socket .
