File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,8 @@ class DeviceTypeResolver : public chip::Access::AccessControl::DeviceTypeResolve
87
87
88
88
namespace chip {
89
89
90
+ Server Server::sServer ;
91
+
90
92
#if CHIP_CONFIG_ENABLE_SERVER_IM_EVENT
91
93
#define CHIP_NUM_EVENT_LOGGING_BUFFERS 3
92
94
static uint8_t sInfoEventBuffer [CHIP_DEVICE_CONFIG_EVENT_LOGGING_INFO_BUFFER_SIZE];
Original file line number Diff line number Diff line change @@ -398,14 +398,13 @@ class Server
398
398
return System::SystemClock ().GetMonotonicMicroseconds64 () - mInitTimestamp ;
399
399
}
400
400
401
- static Server & GetInstance () {
402
- static Server sServer = new Server ();
403
- return *sServer ;
404
- }
401
+ static Server & GetInstance () { return sServer ; }
405
402
406
403
private:
407
404
Server () {}
408
405
406
+ static Server sServer ;
407
+
409
408
void InitFailSafe ();
410
409
void OnPlatformEvent (const DeviceLayer::ChipDeviceEvent & event);
411
410
void CheckServerReadyEvent ();
You can’t perform that action at this time.
0 commit comments