public static void close ( ModbusSlave slave ) { if ( slave != null ) { slave . closeListener ( ) ; slaves . remove ( slave . getType ( ) . getKey ( slave . getPort ( ) ) ) ; } }
Closes this slave and removes it from the running list