thecosmicfrog / LuasataGlance

Android Wear and mobile app providing real-time tram stop information for Dublin's Luas light rail service.
https://play.google.com/store/apps/details?id=org.thecosmicfrog.luasataglance
GNU General Public License v3.0
21 stars 5 forks source link

Add a timeout check on the client-side #9

Open thecosmicfrog opened 9 years ago

thecosmicfrog commented 9 years ago

The Luas RTPI server is currently down and this causes my API server in the middle to time out. As a result, LaaG keeps trying to get a response. It either continues to receive nothing or just displays nothing in the stop forecast.

Add a check on the client-side to determine if things are timing out. If they, handle it gracefully, e.g. display a message stating that a server may be down.