From 20fdd996700121c280326c7791713172cd0b803b Mon Sep 17 00:00:00 2001
From: 648540858 <648540858@qq.com>
Date: 星期一, 13 十二月 2021 17:43:20 +0800
Subject: [PATCH] 修复推流加入国标时未加入开启共享的上级平台

---
 src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/device/DeviceControl.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/device/DeviceControl.java b/src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/device/DeviceControl.java
index 54b4955..20aa957 100644
--- a/src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/device/DeviceControl.java
+++ b/src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/device/DeviceControl.java
@@ -108,10 +108,10 @@
 			msg.setData("Timeout. Device did not response to this command.");
 			resultHolder.invokeAllResult(msg);
 		});
-		resultHolder.put(key, uuid, result);
 		if (resultHolder.exist(key, null)){
 			return result;
 		}
+		resultHolder.put(key, uuid, result);
 		cmder.recordCmd(device, channelId, recordCmdStr, event -> {
             RequestMessage msg = new RequestMessage();
 			msg.setId(uuid);

--
Gitblit v1.8.0