diff --git a/miniupnpc-libevent/miniupnpc-libevent.c b/miniupnpc-libevent/miniupnpc-libevent.c index 38320e5..744ccc5 100644 --- a/miniupnpc-libevent/miniupnpc-libevent.c +++ b/miniupnpc-libevent/miniupnpc-libevent.c @@ -589,6 +589,7 @@ static int upnpc_send_soap_request(upnpc_device_t * p, const char * url, evbuffer_add(buffer, body, body_len); evhttp_make_request(p->soap_conn, req, EVHTTP_REQ_POST, path); free(body); + p->state |= UPNPC_DEVICE_SOAP_REQ; return 0; }