Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 5461319

Browse files
committed
Skip multiple license registrations
1 parent 345b769 commit 5461319

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ServiceStack.Text/LicenseUtils.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ public static void RegisterLicense(string licenseKeyText)
169169
{
170170
JsConfig.InitStatics();
171171

172+
if (__activatedLicense != null) //Skip multple license registrations. Use RemoveLicense() to reset.
173+
return;
174+
172175
string subId = null;
173176
#if !(PCL || NETSTANDARD1_1)
174177
var hold = Thread.CurrentThread.CurrentCulture;

0 commit comments

Comments
 (0)