]> git.cworth.org Git - grrobot/commitdiff
Permit rr_client_next_notice to return null notice
authorKeith Packard <keithp@keithp.com>
Thu, 26 Jun 2003 11:17:33 +0000 (11:17 +0000)
committerKeith Packard <keithp@keithp.com>
Thu, 26 Jun 2003 11:17:33 +0000 (11:17 +0000)
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) {