-/* $Id: thread_net_recv.c,v 1.1 2006/12/31 08:32:39 mmondor Exp $ */
+/* $Id: thread_net_recv.c,v 1.2 2014/06/25 15:33:48 mmondor Exp $ */
/*
* Copyright (c) 2006, Matthew Mondor
#include <main.h>
#include <thread_net_recv.h>
#include <recvq.h>
+#include <screen.h>
#include <conf.h>
*/
while ((res = recvq_read(&recvq)) == 0) ;
- if (res == -1) {
- (void) fprintf(stderr,
- "Connection with server lost\n");
- break;
- }
+ if (res == -1)
+ screen_error("Lost server connection");
/*
* res == 1. We therefore can fill our message and dispatch