řešení ClosedChannelException