mirror of https://gitee.com/bigwinds/arangodb
bugfix close(_socket)
This commit is contained in:
parent
5492e0032f
commit
b891b0e0ce
|
@ -398,10 +398,10 @@ namespace triagens {
|
|||
// -----------------------------------------------------------------------------
|
||||
|
||||
bool SimpleHttpClient::close () {
|
||||
if (_isConnected) {
|
||||
if (_socket != -1) {
|
||||
::close(_socket);
|
||||
_isConnected = false;
|
||||
}
|
||||
_isConnected = false;
|
||||
|
||||
reset();
|
||||
|
||||
|
|
Loading…
Reference in New Issue