only schedule whitespace keepalive if enabled
Merge pull request #309 from Mayflower/whitespace_keepalive

only schedule whitespace keepalive if enabled