Fix kate freezes on startup

Doing an infinite loop is a bad idea. This is linux, things are always failing. Also the 100ms wait sounds like a bad idea, it will make the main thread sleep

Due to this Kate often freezes during startup.

Merge request reports

Loading