]> code.citadel.org Git - citadel.git/blobdiff - webcit/tcp_sockets.c
* upsi, wrong way arround.
[citadel.git] / webcit / tcp_sockets.c
index 73f18b204aa8590dd4a99eeb8df1446b36e0629f..15a1c1c6998200697a708adcc23c62fb3e68abfc 100644 (file)
@@ -630,7 +630,7 @@ long end_burst(void)
        write(2, ptr, StrLength(WCC->WBuf));
        write(2, "\033[30m", 5);
 #endif
-       if (WCC->Hdr->http_sock != -1)
+       if (WCC->Hdr->http_sock == -1)
                return -1;
        fdflags = fcntl(WC->Hdr->http_sock, F_GETFL);