tito/kivy — pull request #319 by akshayaurora (2011-11-22 14:03:54+00:00)
Title: Allow dynamic changes to url in loader

As I commented on issue #316, there was another/related issue with AsyncImage/loader.py,
it seems to get stuck randomly if someone is trying to edit the url in live mode due to invalid url's.

To reproduce the issue:

1) Load the Async Image example with the inspector module
2) Let the image load and start the inspector
3) Edit the source to a new url

Try setting a few different urls if it doesn't get stuck displaying the first url,
it more often than not gets stuck while setting the first url in my case.

Although this can be worked around by forcing only complete url's to be used in the loader.
I think it would be better if loader was resistant to incomplete/invalid url's.

I kept this separate from the AsyncImage branch as this is more an issue with loader than AsyncImage and I'm not quite sure this is the right way to fix this issue.