Ecuador folded because Assange was inside the embassy, in what ultimately is UK soil. There was no way, when push came to shove, to prevent him from being captured. If Assange was in Ecuador proper, they might not have folded, or he might have been able to leave Ecuador for, say, Cuba before the hammer dropped. I imagine this was Snowden's plan since he wanted to go to Cuba, Ecuador, or Venezuela. If he wanted to stay in Russia he wouldn't even have noticed his passport being deactivated, and if he wanted to go to China, he would have went to Shenzhen from Hong Kong instead of going to Russia first.