summaryrefslogtreecommitdiff
path: root/src/ippusbxd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ippusbxd.c')
-rw-r--r--src/ippusbxd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ippusbxd.c b/src/ippusbxd.c
index 3203206..d2d065a 100644
--- a/src/ippusbxd.c
+++ b/src/ippusbxd.c
@@ -40,11 +40,11 @@ static void *service_connection(void *arg_void)
struct http_packet_t *pkt;
pkt = tcp_packet_get(arg->tcp, client_msg);
if (pkt == NULL) {
- NOTE("Got null packet from tcp");
if (arg->tcp->is_closed) {
NOTE("Client closed connection\n");
+ goto cleanup_subconn;
}
- goto cleanup_subconn;
+ ERR_AND_EXIT("Got null packet from tcp");
}
if (usb == NULL) {
usb = usb_conn_aquire(arg->usb_sock, 1);