Skip to content

Commit 2b3a2c3

Browse files
committed
Also clear init() flag in copy constructor
- This ensures a new socket is created in the new client
1 parent 0d0ac4a commit 2b3a2c3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/statsd_client.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ StatsdClient::StatsdClient(const StatsdClient &original)
5858
*d = *original.d;
5959

6060
// Don't share original's socket, either.
61+
d->init = false;
6162
d->sock = -1;
6263
}
6364

0 commit comments

Comments
 (0)