|
@@ -608,7 +608,7 @@ public class DefaultServer implements Server
|
|
|
// should always already be closed through all paths that I
|
|
// should always already be closed through all paths that I
|
|
|
// can conceive... but it doesn't hurt to be sure.
|
|
// can conceive... but it doesn't hurt to be sure.
|
|
|
for( Endpoint p : channels ) {
|
|
for( Endpoint p : channels ) {
|
|
|
- if( p == null )
|
|
|
|
|
|
|
+ if( p == null || !p.isConnected() )
|
|
|
continue;
|
|
continue;
|
|
|
p.close();
|
|
p.close();
|
|
|
}
|
|
}
|