Fix more transport error and shutdown scenarios.

Previously, if the active transport had failed but there were still other running transports, we would claim to be shutdown before we actually were (and would end up calling notifyStopped twice).

Also, if a transport immediately failed during startup, we could end up setting activeTransport to the already-failed transport, which meant we would perpetually try to use that broken transport.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=74339777
1 file changed
tree: 7d63dd6b47b19c9a2e150bd6b6c069ab31275379
  1. auth/
  2. core/
  3. stub/
  4. testing/
  5. LICENSE