]> code.delx.au - pulseaudio/blobdiff - polyp/protocol-esound.c
minor fixes
[pulseaudio] / polyp / protocol-esound.c
index d9ed66b986165864ee5197cb704f29d50223d020..744ad4ed185796253b1f3d7c5a27878d5812dc10 100644 (file)
@@ -714,7 +714,8 @@ static int do_read(struct connection *c) {
         assert(c->read_data_length < sizeof(c->request));
 
         if ((r = pa_iochannel_read(c->io, ((uint8_t*) &c->request) + c->read_data_length, sizeof(c->request) - c->read_data_length)) <= 0) {
-            pa_log(__FILE__": read() failed: %s\n", r == 0 ? "EOF" : strerror(errno));
+            if (r != 0)
+                pa_log_warn(__FILE__": read() failed: %s\n", strerror(errno));
             return -1;
         }