Skip to content

Commit

Permalink
Bump v0.0.38
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-dmxc committed Mar 20, 2023
1 parent 6d2c4ea commit bf3a52a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions NanoleafAPI/API/Controller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class Controller : IDisposable
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
public string? Auth_token { get; private set; } = null;
private bool isDisposed = false;
public bool IsInitializing { get; private set; } = false;
public bool IsInitialized { get; private set; } = false;
protected bool IsSendPossible
{
Expand Down Expand Up @@ -260,7 +261,7 @@ public Controller(string ip, string port, bool initialize, string? auth_token =
Port = port;
Auth_token = auth_token;
if (initialize)
_ = startServices();
_ = Initialize();
}
#pragma warning restore CS8618

Expand All @@ -272,8 +273,10 @@ public async Task Initialize()
{
if (this.IsInitialized)
return;

this.IsInitializing = true;
await this.startServices();
this.IsInitialized = true;
this.IsInitializing = false;
}
private async Task startServices()
{
Expand All @@ -283,7 +286,6 @@ private async Task startServices()
}
_ = this.runController();
this.streamController();
IsInitialized = true;
}

public async Task RequestToken(int tryes = 20)
Expand Down
2 changes: 1 addition & 1 deletion NanoleafAPI/NanoleafAPI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<Version>0.0.37</Version>
<Version>0.0.38</Version>
<RepositoryUrl>https://github.com/patrick-dmxc/NanoleafAPI</RepositoryUrl>
<PackageProjectUrl>$(RepositoryUrl)</PackageProjectUrl>
<PackageTags>Nanoleaf Light-Panels Canvas Shapes Essentials Elemants Lines API SmartHome</PackageTags>
Expand Down

0 comments on commit bf3a52a

Please sign in to comment.