File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,6 +73,27 @@ final class RuntimeListings: ObservableObject {
7373 }
7474 . store ( in: & subscriptions)
7575
76+ Timer . publish ( every: 15 , on: . main, in: . default)
77+ . autoconnect ( )
78+ . sink { [ weak self] _ in
79+ guard let self else { return }
80+
81+ let classList = CDUtilities . classNames ( )
82+ let protocolList = CDUtilities . protocolNames ( )
83+
84+ let refClassList = self . classList
85+ let refProtocolList = self . protocolList
86+
87+ if classList != refClassList {
88+ Self . logger. error ( " Watchdog: classList is out-of-date " )
89+ self . classList = classList
90+ }
91+ if protocolList != refProtocolList {
92+ Self . logger. error ( " Watchdog: protocolList is out-of-date " )
93+ self . protocolList = protocolList
94+ }
95+ }
96+ . store ( in: & subscriptions)
7697 }
7798
7899 func isImageLoaded( path: String ) -> Bool {
You can’t perform that action at this time.
0 commit comments