fix 100% CPU when proxy is idle