Skip to content

Commit 795fd88

Browse files
author
Sebastiano Merlino
committed
Solved a bug in is_valid method
1 parent 8f69ae9 commit 795fd88

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/webserver.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1589,6 +1589,11 @@ bool webserver::is_valid(const std::string& key)
15891589
pthread_rwlock_unlock(&cache_guard);
15901590
return false;
15911591
}
1592+
else
1593+
{
1594+
pthread_rwlock_unlock(&cache_guard);
1595+
return true;
1596+
}
15921597
}
15931598
else
15941599
{

0 commit comments

Comments
 (0)