Motorcycle Questions? Ask a Mechanic.
That isn't nearly enough heat to cause any damage. The engine temperature sensor probably just got warm enough to mess up the air/fuel mix enough to kill it. It doesn't have any type of high temperature shutdown built into the system.
I surely wouldn't recommend doing that anymore though. The bike needs air moving across the engine when it is running.
I hope this helps. Please let me know if I can be of further assistance. Thanks, P.J.