summaryrefslogtreecommitdiffstats
path: root/test/test-client.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-client.c')
-rw-r--r--test/test-client.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test-client.c b/test/test-client.c
index 45ce722..a7bbc16 100644
--- a/test/test-client.c
+++ b/test/test-client.c
@@ -80,7 +80,10 @@ main ( int argc, char *argv[] )
for (SDL_Event event; SDL_PollEvent (&event);)
if (event.type == SDL_QUIT) cont = 0;
- kiro_client_sync (client);
+ if (kiro_client_sync (client) < 0) {
+ g_warning ("Unable to get data from server. Stopping.");
+ break;
+ }
SDL_Delay (10);
render (data_sf);
}