Permalink
Browse files

Made sure it doesn't turn itself back on.

  • Loading branch information...
IAmCoder committed Nov 17, 2014
1 parent 82a334b commit 1e7f78231c3ad88a81f664d13d50bd956f1df597
@@ -58,13 +58,13 @@
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_4210C5B26664BD7B4C21B3A1C66C3BE8"
"OwnerKey" = "8:_8A04AA9B98A94963AADF2135268ACC52"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_8A04AA9B98A94963AADF2135268ACC52"
"OwnerKey" = "8:_4210C5B26664BD7B4C21B3A1C66C3BE8"
"MsmSig" = "8:_UNDEFINED"
}
}
@@ -164,7 +164,7 @@
{
"Name" = "8:.NET Framework"
"Message" = "8:[VSDNETMSG]"
"FrameworkVersion" = "8:3.5.30729 "
"FrameworkVersion" = "8:3.5.30729 "
"AllowLaterVersions" = "11:FALSE"
"InstallUrl" = "8:http://go.microsoft.com/fwlink/?LinkId=76617"
}
@@ -351,15 +351,15 @@
{
"Name" = "8:Microsoft Visual Studio"
"ProductName" = "8:Lucid Scribe Yocto PowerRelay"
"ProductCode" = "8:{B7A949B0-8C71-4538-A269-AB2C2E2C3113}"
"PackageCode" = "8:{38388A46-8F8C-4DE1-A506-96A19A307F84}"
"ProductCode" = "8:{12C073F6-6D3B-4498-86DE-D0D2FE713916}"
"PackageCode" = "8:{89546A09-3F39-4813-800E-7EA0B60C31AB}"
"UpgradeCode" = "8:{F7366005-EA41-478D-BED9-08441C13A31E}"
"AspNetVersion" = "8:4.0.30319.0"
"RestartWWWService" = "11:FALSE"
"RemovePreviousVersions" = "11:TRUE"
"DetectNewerInstalledVersion" = "11:TRUE"
"InstallAllUsers" = "11:TRUE"
"ProductVersion" = "8:1.0.1"
"ProductVersion" = "8:1.0.2"
"Manufacturer" = "8:lucidcode"
"ARPHELPTELEPHONE" = "8:"
"ARPHELPLINK" = "8:http://www.lucidcode.com/Contact"
Binary file not shown.
@@ -19,6 +19,7 @@ public class PlugoutHandler : lucidcode.LucidScribe.Interface.LucidPlugoutBase
private Boolean Failed = false;
private Boolean On = false;
private Thread SwitchOffThread;
private Boolean SwitchingOff = false;

public override string Name
{
@@ -72,9 +73,12 @@ public override void Trigger()

On = true;

// Turn it off in a minute
SwitchOffThread = new Thread(SwitchOff);
SwitchOffThread.Start();
if (!SwitchingOff)
{
// Turn it off in a minute
SwitchOffThread = new Thread(SwitchOff);
SwitchOffThread.Start();
}
}
else
{
@@ -92,7 +96,9 @@ public void SwitchOff()
{
Thread.Sleep(1000 * 60);
On = false;
SwitchingOff = true;
Trigger();
SwitchingOff = false;
On = false;
}

@@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.1.0")]
[assembly: AssemblyFileVersion("1.0.1.0")]
[assembly: AssemblyVersion("1.0.2.0")]
[assembly: AssemblyFileVersion("1.0.2.0")]

0 comments on commit 1e7f782

Please sign in to comment.