Skip to content

Commit 703a318

Browse files
committed
[add] null client handling
1 parent 6bfb277 commit 703a318

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Etcd.Microsoft.Extensions.Configuration/Client/EtcdKeyValueClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public void Dispose()
131131
if (_unwatchOnDispose)
132132
StopWatchAll();
133133

134-
_client.Dispose();
134+
_client?.Dispose();
135135
}
136136

137137
/// <summary>

0 commit comments

Comments
 (0)