diff options
author | Attila Molnar <attilamolnar@hush.com> | 2015-06-06 15:14:39 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2015-06-06 15:14:39 +0200 |
commit | f8bd10737457e9775038bda4448ae6bbb75cce74 (patch) | |
tree | e753f3992e0238a3d086449e86b7fb567ae6f3cd /src/inspsocket.cpp | |
parent | 042cd5e8e6edcf7a678c71e01919d9de319debc9 (diff) |
Clean up indent in StreamSocket::DoWrite()
Diffstat (limited to 'src/inspsocket.cpp')
-rw-r--r-- | src/inspsocket.cpp | 28 |
1 files changed, 6 insertions, 22 deletions
diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index 436cbb6bb..89c3a71a9 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -201,28 +201,12 @@ void StreamSocket::DoWrite() if (GetIOHook()) { - { - { - { - int rv = GetIOHook()->OnStreamSocketWrite(this); - if (rv > 0) - { - // consumed the entire string, and is ready for more - } - else if (rv == 0) - { - // socket has blocked. Stop trying to send data. - // IOHook has requested unblock notification from the socketengine - return; - } - else - { - SetError("Write Error"); // will not overwrite a better error message - return; - } - } - } - } + int rv = GetIOHook()->OnStreamSocketWrite(this); + if (rv < 0) + SetError("Write Error"); // will not overwrite a better error message + + // rv == 0 means the socket has blocked. Stop trying to send data. + // IOHook has requested unblock notification from the socketengine. } else { |