Showing
1 changed file
with
3 additions
and
5 deletions
| ... | ... | @@ -31,13 +31,11 @@ |
| 31 | 31 | TR_SocketFin |
| 32 | 32 | TR_socketShutdown(TR_Socket this) |
| 33 | 33 | { |
| 34 | - if (TR_socketFinRdWr(this)) { | |
| 35 | - return this->fin_state; | |
| 34 | + if (! TR_socketFinRdWr(this)) { | |
| 35 | + shutdown(this->handle, SHUT_RDWR); | |
| 36 | + this->fin_state |= TR_FIN_RDWR; | |
| 36 | 37 | } |
| 37 | 38 | |
| 38 | - shutdown(this->handle, SHUT_RDWR); | |
| 39 | - this->fin_state |= TR_FIN_RDWR; | |
| 40 | - | |
| 41 | 39 | return this->fin_state; |
| 42 | 40 | } |
| 43 | 41 | ... | ... |
Please
register
or
login
to post a comment