Skip to content

Commit a7e2fcd

Browse files
sokilDmytro Sokilbednar
authored
fix: close the UdpWriter (#144)
* fix: close the UdpWriter * docs: updated CHANGELOG.md * docs: Update CHANGELOG.md --------- Co-authored-by: Dmytro Sokil <[email protected]> Co-authored-by: Jakub Bednář <[email protected]>
1 parent 5ff8234 commit a7e2fcd

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## 3.4.0 [unreleased]
22

3+
### Bug Fixes
4+
1. [#144](https://github.com/influxdata/influxdb-client-php/pull/144): Correcti closing the UdpWriter
5+
36
## 3.3.0 [2023-03-29]
47

58
### Others

src/InfluxDB2/UdpWriter.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ public function close()
119119
{
120120
if (isset($this->socket)) {
121121
socket_close($this->socket);
122+
123+
$this->socket = null;
122124
}
123125
}
124126
}

0 commit comments

Comments
 (0)