From 0ca9e301a0491212dd58aa341e5b422150e4d202 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Wed, 19 Jun 2019 06:43:05 -0400 Subject: [PATCH] i'm a moron --- GUI/host/host.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/GUI/host/host.cpp b/GUI/host/host.cpp index d297845..5dbd917 100644 --- a/GUI/host/host.cpp +++ b/GUI/host/host.cpp @@ -178,7 +178,11 @@ namespace Host for (int retry = 0; retry < 3; ++retry) // retry loop in case something else is using the clipboard { Sleep(10); - if (auto text = Util::GetClipboardText()) GetThread(clipboard).AddSentence(std::move(text.value())); + if (auto text = Util::GetClipboardText()) + { + GetThread(clipboard).AddSentence(std::move(text.value())); + break; + } } } throw;