fixed lwm2m uplink executor lock
This commit is contained in:
		
							parent
							
								
									b7e10fe707
								
							
						
					
					
						commit
						4e759dd425
					
				@ -480,7 +480,7 @@ public class DefaultLwM2mUplinkMsgHandler extends LwM2MExecutorAwareService impl
 | 
			
		||||
            CountDownLatch latch = new CountDownLatch(targetIds.size());
 | 
			
		||||
            targetIds.forEach(versionedId -> sendReadRequest(lwM2MClient, versionedId,
 | 
			
		||||
                    new TbLwM2MLatchCallback<>(latch, new TbLwM2MReadCallback(this, logService, lwM2MClient, versionedId))));
 | 
			
		||||
            latch.await();
 | 
			
		||||
            latch.await(config.getTimeout(), TimeUnit.MILLISECONDS);
 | 
			
		||||
        } catch (InterruptedException e) {
 | 
			
		||||
            log.error("[{}] Failed to await Read requests!", lwM2MClient.getEndpoint(), e);
 | 
			
		||||
        } catch (Exception e) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user