private void transportClosed ( ServerTransport transport ) { synchronized ( lock ) { if ( ! transports . remove ( transport ) ) { throw new AssertionError ( "Transport already removed" ) ; } channelz . removeServerSocket ( ServerImpl . this , transport ) ; checkForTermination ( ) ; } }
Remove transport service from accounting collection and notify of complete shutdown if necessary .