remove async await no longer used

master
UbitUmarov 2020-07-24 19:24:34 +01:00
parent e08ca7402c
commit 0c716cbd73
3 changed files with 3 additions and 3 deletions

View File

@ -516,7 +516,7 @@ namespace OSHttpServer
ContextTimeoutManager.EnqueueSend(this, m_currentResponse.Priority, notThrottled);
}
public async Task EndSendResponse(uint requestID, ConnectionType ctype)
public void EndSendResponse(uint requestID, ConnectionType ctype)
{
isSendingResponse = false;
m_currentResponse?.Clear();

View File

@ -469,7 +469,7 @@ namespace OSHttpServer
if (m_body != null)
m_body.Dispose();
Sent = true;
await m_context.EndSendResponse(requestID, Connection).ConfigureAwait(false);
m_context.EndSendResponse(requestID, Connection);
}
private int CheckBandwidth(int request, int bytesLimit)

View File

@ -96,7 +96,7 @@ namespace OSHttpServer
void StartSendResponse(HttpResponse response);
void ContinueSendResponse(bool notThrottled);
Task EndSendResponse(uint requestID, ConnectionType connection);
void EndSendResponse(uint requestID, ConnectionType connection);
bool TrySendResponse(int limit);
}