Commit d9d1c09e259ddbc3a5103a66567b0c0c7b2c19a9

Azat Khuzhin 2018-04-24T00:59:11

Notify event base if there are no more events, so it can exit without delay Fixes: #623 (cherry picked from commit 23c2914f6b430f2c2d74c267c13ffab3dda1b325)