File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,11 +72,14 @@ final class SQLEditorCoordinator: TextViewCoordinator {
7272 /// Subscribe to coordinator teardown notifications for this connection.
7373 func observeTeardown( connectionId: UUID ) {
7474 self . connectionId = connectionId
75+ NSLog ( " [SQLEditorCoordinator] observeTeardown registered for %@ " , connectionId. uuidString)
7576 teardownObserver = NotificationCenter . default. addObserver (
7677 forName: MainContentCoordinator . editorTeardownNotification,
7778 object: nil ,
78- queue: . main
79+ queue: nil // Synchronous delivery on posting thread ( main)
7980 ) { [ weak self] notification in
81+ NSLog ( " [SQLEditorCoordinator] teardown notification received, self=%@ " ,
82+ self == nil ? " nil " : " alive " )
8083 guard let self,
8184 let notifConnectionId = notification. object as? UUID ,
8285 notifConnectionId == connectionId else { return }
You can’t perform that action at this time.
0 commit comments