From 85f40a76d24175404751c96ff920ea367d698ba5 Mon Sep 17 00:00:00 2001 From: eidheim Date: Sun, 29 Aug 2021 06:08:27 +0200 Subject: [PATCH] Language client: removed unecessary event flush --- src/source_language_protocol.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/source_language_protocol.cpp b/src/source_language_protocol.cpp index b124542..6a61db5 100644 --- a/src/source_language_protocol.cpp +++ b/src/source_language_protocol.cpp @@ -628,10 +628,6 @@ void LanguageProtocol::Client::handle_server_request(const boost::variantpost([this] { LockGuard lock(views_mutex); for(auto &view : views) { - while(!view->initialized) { - while(Gtk::Main::events_pending()) - Gtk::Main::iteration(); - } view->write_notification("textDocument/didClose"); view->write_did_open_notification(); }