X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2FLibCecTray%2FProgram.cs;h=3ab9cf7317e7d5f6a9827768d720ecf4c5f1bdf1;hb=8fad0fe870edcd90e4788d8b56da80ab29c9e016;hp=c0a6a3a5ee5da5ff1c4434fdabcc384b42a597e7;hpb=51cf495d05ba1cce3edb750d3afdc60067f9e7af;p=deb_libcec.git diff --git a/src/LibCecTray/Program.cs b/src/LibCecTray/Program.cs index c0a6a3a..3ab9cf7 100644 --- a/src/LibCecTray/Program.cs +++ b/src/LibCecTray/Program.cs @@ -1,7 +1,7 @@ /* * This file is part of the libCEC(R) library. * - * libCEC(R) is Copyright (C) 2011-2012 Pulse-Eight Limited. All rights reserved. + * libCEC(R) is Copyright (C) 2011-2013 Pulse-Eight Limited. All rights reserved. * libCEC(R) is an original work, containing original code. * * libCEC(R) is a trademark of Pulse-Eight Limited. @@ -42,7 +42,15 @@ namespace LibCECTray private static CECTray _instance; public static CECTray Instance { - get { return _instance ?? (_instance = new CECTray()); } + get + { + if (_instance == null) + { + _instance = new CECTray(); + _instance.Initialise(); + } + return _instance; + } } [STAThread]