shellbase 0.13.3 → 0.13.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent.js +4 -1
- package/package.json +1 -1
package/dist/agent.js
CHANGED
|
@@ -294,10 +294,13 @@ export async function runAgent(options) {
|
|
|
294
294
|
// (세션을 전환할 때마다 검은 화면이 몇 초씩 남다가 뒤늦게 돌아오던 원인).
|
|
295
295
|
// 통로는 부친 순서대로 내보내므로, 한꺼번에 부치고 결과만 모아서 확인한다.
|
|
296
296
|
const sendParts = async (session, parts) => {
|
|
297
|
-
const results = await Promise.allSettled(parts.map((part) => sendFrame({
|
|
297
|
+
const results = await Promise.allSettled(parts.map((part, index) => sendFrame({
|
|
298
298
|
kind: 'output',
|
|
299
299
|
to: session.deviceId,
|
|
300
300
|
data: encryptFrame(part, session.frameKey),
|
|
301
|
+
// 복원 조각임을 표시해서, 폰이 다 모은 뒤 한 번에 그리게 한다 (검은 화면 방지)
|
|
302
|
+
seq: index,
|
|
303
|
+
total: parts.length,
|
|
301
304
|
})));
|
|
302
305
|
let sent = 0;
|
|
303
306
|
while (sent < results.length && results[sent].status === 'fulfilled')
|