From 74ce2a0a0c6b23bf909b926dc93105eb63e8909a Mon Sep 17 00:00:00 2001 From: nekosu Date: Wed, 1 Nov 2023 00:18:39 +0800 Subject: [PATCH] fix: maybe fix minicap connection problem --- source/MaaAdbControlUnit/Screencap/Minicap/MinicapStream.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/MaaAdbControlUnit/Screencap/Minicap/MinicapStream.cpp b/source/MaaAdbControlUnit/Screencap/Minicap/MinicapStream.cpp index 2062842a6..a35688c28 100644 --- a/source/MaaAdbControlUnit/Screencap/Minicap/MinicapStream.cpp +++ b/source/MaaAdbControlUnit/Screencap/Minicap/MinicapStream.cpp @@ -57,6 +57,8 @@ bool MinicapStream::init(int swidth, int sheight) if (outputBuffer.find("Allocating") != std::string::npos) { break; } + using namespace std::chrono_literals; + std::this_thread::sleep_for(100ms); } if (i == 0) {