From dd31184b900636214897a1a08026279390049b92 Mon Sep 17 00:00:00 2001 From: Arturs Artamonovs Date: Wed, 9 Sep 2026 16:47:05 +0100 Subject: queues are now have guardlocks --- Net1090/main.swift | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'Net1090/main.swift') diff --git a/Net1090/main.swift b/Net1090/main.swift index 2620dca..deeae31 100644 --- a/Net1090/main.swift +++ b/Net1090/main.swift @@ -11,10 +11,9 @@ import NIO var timer: Timer? -let ADSBClient = NetADSBDecoder(host: "64.226.23.78", port: 30003) +let ADSBClient = NetADSBDecoder(host: "192.168.7.61", port: 12345) -print("Hello, World!") -print("Start listening client 2") +print("Net1090") //var timer:Timer? timer = Timer.scheduledTimer( @@ -22,12 +21,8 @@ timer = Timer.scheduledTimer( repeats: true ) { _ in print("Timer drain queue") - print("\(ADSBClient.msgarray.message_array.count)") - if ADSBClient.msgarray.message_array.count > 0 { - print(ADSBClient.msgarray.message_array.count) - for i in 0..