Fixed start up crash on older OS version (11.5)
This commit is contained in:
1 parent
010d86f34e
commit
2c1306c563
6 files changed
+26
-4
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import "pkg:/source/utils/MessagePortUtils.bs"
|
||||
import "pkg:/source/utils/Types.bs"
|
||||
|
||||
namespace Http
|
||||
@@ -42,7 +43,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.observeFieldScopedEx("lib_version_latest", msgPort)
|
||||
MessagePortUtils.ObserveFieldScopedExSafe(m.applicationInfoNode, "lib_version_latest", msgPort)
|
||||
wait(5000, msgPort)
|
||||
m.applicationInfoNode.unobserveFieldScoped("lib_version_latest")
|
||||
|
||||
|
||||
Reference in new issue
Block a user