Skip to content

Commit 0bcba91

Browse files
committed
Move storing of initialState in startRequest to the start
1 parent 70dc5ee commit 0bcba91

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

HttpClient.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,15 @@ void HttpClient::beginRequest()
5656

5757
int HttpClient::startRequest(const char* aURLPath, const char* aHttpMethod)
5858
{
59+
tHttpState initialState = iState;
60+
5961
if (!iConnectionClose)
6062
{
6163
flushClientRx();
6264

6365
resetState();
6466
}
6567

66-
tHttpState initialState = iState;
6768
if ((eIdle != iState) && (eRequestStarted != iState))
6869
{
6970
return HTTP_ERROR_API;

0 commit comments

Comments
 (0)