Commit 340a3c114cdb90655ec2c730ef49d87542172bdb

Authored by Georg Hopp
1 parent 7764f5e8

small code improvement

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