Bugfix: don't try to write directly to the client if there's a write buffer