fix usage of deprecated api

This commit is contained in:
Brahim Hadriche committed 2024-12-17 18:55:16 -05:00
1 parent e1bcfc053a
commit 031601d49c
5 files changed
+8 -4

No files matched your search

@@ -67,7 +67,7 @@ namespace Http
loungeToken = m.loungeService.loungeToken
if StringUtils.IsNullOrEmpty(loungeToken)
messagePort = CreateObject("roMessagePort")
m.loungeService.observeFieldScoped("loungeToken", messagePort)
m.loungeService.observeFieldScopedEx("loungeToken", messagePort)
m.loungeService.join = true
message = wait(30000, messagePort)
m.loungeService.unobserveFieldScoped("loungeToken")
@@ -42,7 +42,7 @@ namespace Http
' If the lib_version_latest field is not available, we can give it a few seconds
' To make a request to Github to get the latest version.
msgPort = CreateObject("roMessagePort")
m.applicationInfoNode.observeFieldScoped("lib_version_latest", msgPort)
m.applicationInfoNode.observeFieldScopedEx("lib_version_latest", msgPort)
wait(5000, msgPort)
m.applicationInfoNode.unobserveFieldScoped("lib_version_latest")