File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
tools/SourceKit/tools/sourcekitd/bin/InProc Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -154,15 +154,12 @@ sourcekitd_set_notification_handler(sourcekitd_response_receiver_t receiver) {
154
154
}
155
155
156
156
void sourcekitd::postNotification (sourcekitd_response_t Notification) {
157
- sourcekitd_response_receiver_t receiver = Block_copy (NotificationReceiver);
158
- if (!receiver) {
159
- sourcekitd_response_dispose (Notification);
160
- return ;
161
- }
162
-
163
157
WorkQueue::dispatchOnMain ([=]{
158
+ if (!NotificationReceiver) {
159
+ sourcekitd_response_dispose (Notification);
160
+ return ;
161
+ }
164
162
// The receiver accepts ownership of the notification object.
165
- receiver (Notification);
166
- Block_release (receiver);
163
+ NotificationReceiver (Notification);
167
164
});
168
165
}
You can’t perform that action at this time.
0 commit comments