Skip to content

Commit

Permalink
Merge pull request #162 from jacobx1/fix-null-proxy
Browse files Browse the repository at this point in the history
Fix null connection proxy
  • Loading branch information
csharpfritz authored Jan 5, 2021
2 parents e418e46 + ff0b36e commit 75ecdf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/StreamDeckLib/ConnectionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public ConnectionManager(IOptions<StreamDeckToolkitOptions> options, ActionManag
_uuid = options.Value.PluginUUID;
_registerEvent = options.Value.RegisterEvent;
}
_proxy = streamDeckProxy;
_proxy = streamDeckProxy ?? new StreamDeckProxy();
}

private ConnectionManager(StreamDeckToolkitOptions options, ILoggerFactory loggerFactory = null, IStreamDeckProxy streamDeckProxy = null) : this()
Expand All @@ -61,7 +61,7 @@ private ConnectionManager(StreamDeckToolkitOptions options, ILoggerFactory logge
_port = options.Port;
_uuid = options.PluginUUID;
_registerEvent = options.RegisterEvent;
_proxy = streamDeckProxy;
_proxy = streamDeckProxy ?? new StreamDeckProxy();

_LoggerFactory = loggerFactory ?? NullLoggerFactory.Instance;
_logger = loggerFactory?.CreateLogger<ConnectionManager>();
Expand Down

0 comments on commit 75ecdf7

Please sign in to comment.