Skip to content

Commit 1ee81a7

Browse files
committed
Update milliseconds comparison
1 parent e21b22b commit 1ee81a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

impl/httpLibHttpClient/NHttpClientLibHC.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ void NHttpClientLibHC::setBaseUri(const std::string& uri) { m_baseUri = uri; }
101101

102102
void NHttpClientLibHC::setTimeout(std::chrono::milliseconds timeout) {
103103
m_timeout = timeout;
104-
if (m_timeout >= std::chrono::seconds(0)) {
104+
if (m_timeout >= std::chrono::milliseconds(0)) {
105105
HRESULT hr =
106106
HCHttpCallRequestSetTimeout(nullptr, std::chrono::duration_cast<std::chrono::seconds>(m_timeout).count());
107107
if (FAILED(hr)) {

0 commit comments

Comments
 (0)