diff --git a/minissdpd/showminissdpdnotif.c b/minissdpd/showminissdpdnotif.c index 9954c31..679cd40 100644 --- a/minissdpd/showminissdpdnotif.c +++ b/minissdpd/showminissdpdnotif.c @@ -69,6 +69,7 @@ int main(int argc, char * * argv) break; } else if(n == 0) { printf("Socket closed\n"); + break; } printf("%d bytes read\n", (int)n); printresponse(buffer, (int)n);