Click below to view an example of this behavior. This is hitting the ArcGIS.com sample server so you will have to take my word on the "hung" SOC processes. http://geoville.org/viewers/identifytoggle/
My question is two fold. 1: Could this be a bug? 2: Any ideas on how to keep the identify task from executing when there are no layers visible?
Thanks for your help.
I have also posted this question in the Esri forums here. http://forums.arcgis.com/threads/35860-Identify-with-Layer-Toggling?p=120915#post120915