Skip to content

Commit

Permalink
Merge pull request #19 from chapeupreto/add-verification-when-device-…
Browse files Browse the repository at this point in the history
…is-closed

fix in order to know whether the device was disconnected or not.
  • Loading branch information
ankitjain093 committed Feb 13, 2016
2 parents 20af72a + bb7f509 commit 652a8b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions netconf/Device.php
Expand Up @@ -870,6 +870,7 @@ public function close() {
$rpcReply = $this->get_rpc_reply($rpc);
$this->last_rpc_reply = $rpcReply;
fclose($this->stream);
$this->is_connected = $this->is_ok() ? false : true;
}
/**
* Create hello_rpc packet with user defined capabilities
Expand Down

0 comments on commit 652a8b6

Please sign in to comment.