Skip to content

Commit

Permalink
Workers Cache update condition fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Kraynyukhov committed Jul 22, 2018
1 parent 542da44 commit 23188c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/Balancer.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ namespace LAppS
try {
auto inbound_connection=mInbound.recv();

if(mWorkersCache.size()==0)
if(mWorkersCache.size()!=itc::Singleton<WSWorkersPool<TLSEnable,StatsEnable>>::getInstance()->size())
itc::Singleton<WSWorkersPool<TLSEnable,StatsEnable>>::getInstance()->getWorkers(mWorkersCache);

if(mWorkersCache.size()>0)
Expand Down

0 comments on commit 23188c0

Please sign in to comment.