-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: allow multiple URI schemes during discovery
This commit addresses a potential problem which could arise if the scheme of a URI obtained via CoRE Resource Discovery was not the same as the URI scheme of the original discovery URI. This was caused by the fact that only one ProtocolClient for the original URI scheme was initialized. This commit addresses the issue by introducing a cache for clients which is expanded if more clients for different URI schemes are needed during discovery. In the stop method, all clients are cleaned up simultaneously.
- Loading branch information
Showing
1 changed file
with
24 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters