aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/capi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/capi.c b/src/capi.c
index 531ae34d..85aef974 100644
--- a/src/capi.c
+++ b/src/capi.c
@@ -571,8 +571,8 @@ int a_Capi_dpi_send_data(const DilloUrl *url, void *bw,
} else {
/* Re-use an open connection */
conn = Capi_conn_find(server);
- if (conn) {
- /* found */
+ if (conn && conn->InfoSend) {
+ /* found & active */
dbuf = a_Chain_dbuf_new(data, data_sz, 0);
a_Capi_ccc(OpSend, 1, BCK, conn->InfoSend, dbuf, NULL);
dFree(dbuf);