]> git.cworth.org Git - grrobot/blobdiff - src/grrobot.c
Permit rr_client_next_notice to return null notice
[grrobot] / src / grrobot.c
index 98f14f2582fad574e77c4317ed16a6fd2a13318b..2f3b5332b7aea9e649e6f457cbcdda91b1fd3fd8 100644 (file)
@@ -190,8 +190,11 @@ grr_game_read_notices (grr_game_t *game)
        if (status) {
            fprintf (stderr, "Error during rr_client_next_notice: %s\n",
                     rr_status_str (status));
-           gtk_exit (1);
-           return;
+           exit (1);
+       }
+       if (!notice) {
+           fprintf (stderr, "Missing notice\n");
+           continue;
        }
 
        switch (notice->type) {