Skip to content

Commit

Permalink
fix(DeviceClient): Avoid NRE after client dispose (#2286)
Browse files Browse the repository at this point in the history
  • Loading branch information
azabbasi authored Jan 18, 2022
1 parent 65749c2 commit f114662
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion iothub/device/src/DeviceClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,6 @@ protected virtual void Dispose(bool disposing)
if (disposing)
{
InternalClient?.Dispose();
InternalClient = null;
}
}

Expand Down
1 change: 0 additions & 1 deletion iothub/device/src/InternalClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1902,7 +1902,6 @@ internal void ValidateModuleTransportHandler(string apiName)
public void Dispose()
{
InnerHandler?.Dispose();
InnerHandler = null;
_methodsSemaphore?.Dispose();
_moduleReceiveMessageSemaphore?.Dispose();
_fileUploadHttpTransportHandler?.Dispose();
Expand Down

0 comments on commit f114662

Please sign in to comment.