while (rr_client_notice_pending (game->client)) {
status = rr_client_next_notice (game->client, ¬ice);
if (status) {
- fprintf (stderr, "Error during rr_client_next_notice: %s\n",
- rr_status_str (status));
- exit (1);
+ if (status == RR_STATUS_EOF)
+ fprintf (stderr, "The server has disconnected, exiting.\n");
+ else
+ fprintf (stderr, "Error during rr_client_next_notice: %s\n",
+ rr_status_str (status));
+ gtk_exit (1);
}
if (!notice) {
fprintf (stderr, "Missing notice\n");