benitlux: don't endlessly recheck token if its invalid
authorAlexis Laferrière <alexis.laf@xymus.net>
Sun, 25 Sep 2016 23:10:18 +0000 (19:10 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Mon, 2 Jan 2017 18:38:35 +0000 (13:38 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

contrib/benitlux/src/client/views/home_views.nit

index fde6144..44144a8 100644 (file)
@@ -102,7 +102,7 @@ class HomeWindow
                (new HomeListPeopleAction(self, "rest/friends?token={app.token}")).start
 
                # Check if token is still valid
-               (new CheckTokenAction(self, "rest/check_token?token={app.token}")).start
+               if app.token != "none" then (new CheckTokenAction(self, "rest/check_token?token={app.token}")).start
        end
 
        redef fun on_event(event)