app event handler now turns app networking on/off based on ACN status #96

Merged
dan merged 2 commits from networkAfterOnline into trunk 2022-09-09 16:43:03 +00:00
Owner

requires cwtch.im/cwtch#456

and servers treatment

requires https://git.openprivacy.ca/cwtch.im/cwtch/pulls/456 and servers treatment
dan changed title from WIP: app event handler now turns app networking on/off based on ACN status to app event handler now turns app networking on/off based on ACN status 2022-09-09 04:32:43 +00:00
Member
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/libcwtch-go/8
dan force-pushed networkAfterOnline from 0ff8cc508d to d22e52c54c 2022-09-09 04:37:48 +00:00 Compare
Member
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/libcwtch-go/9
dan force-pushed networkAfterOnline from d22e52c54c to d3d38b07d1 2022-09-09 04:44:24 +00:00 Compare
Member
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/libcwtch-go/10
dan force-pushed networkAfterOnline from d3d38b07d1 to 28d3c87a9a 2022-09-09 04:49:35 +00:00 Compare
Member
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/libcwtch-go/11
dan force-pushed networkAfterOnline from 28d3c87a9a to 635edacf1c 2022-09-09 05:07:04 +00:00 Compare
Member
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/libcwtch-go/12
dan force-pushed networkAfterOnline from 635edacf1c to d7449c0ef3 2022-09-09 05:19:59 +00:00 Compare
Member
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/libcwtch-go/13
dan force-pushed networkAfterOnline from d7449c0ef3 to 46951722da 2022-09-09 05:27:01 +00:00 Compare
Member
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/libcwtch-go/14
dan force-pushed networkAfterOnline from 46951722da to 0b5d03529b 2022-09-09 05:35:25 +00:00 Compare
Member
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/libcwtch-go/15
dan force-pushed networkAfterOnline from 0b5d03529b to d30ba0741c 2022-09-09 06:44:40 +00:00 Compare
Member
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/libcwtch-go/16
dan force-pushed networkAfterOnline from d30ba0741c to 65b661804e 2022-09-09 06:54:32 +00:00 Compare
Member
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/libcwtch-go/17
dan force-pushed networkAfterOnline from 65b661804e to b87de7f82d 2022-09-09 07:13:34 +00:00 Compare
dan force-pushed networkAfterOnline from b87de7f82d to 7fbc2312cc 2022-09-09 07:19:08 +00:00 Compare
Member
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/libcwtch-go/18
Member
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/libcwtch-go/19
sarah reviewed 2022-09-09 15:17:35 +00:00
lib.go Outdated
@ -1304,1 +1306,4 @@
log.Infof("Loaded servers, making list")
acnStatus, _ := globalACN.GetBootstrapStatus()
for _, serverOnion := range serversList {
log.Infof(" got sercer %v\n", serverOnion)

sercer

sercer
sarah reviewed 2022-09-09 15:17:47 +00:00
lib.go Outdated
@ -1309,2 +1314,3 @@
application.GetPrimaryBus().Publish(ev)
if serverInfo.Autostart {
if serverInfo.Autostart && acnStatus == 100 {
log.Infof(" LaunchServer %v...\n", serverOnion)

Info?

Info?
sarah reviewed 2022-09-09 15:18:01 +00:00
lib.go Outdated
@ -1294,20 +1294,26 @@ func c_LoadServers(passwordPtr *C.char, passwordLen C.int) {
func LoadServers(password string) {
serversHandler, err := servers.ExperimentGate(utils.ReadGlobalSettings().Experiments)
if err == nil {
log.Infof("serversHandler.LoadServers...\n")

Info?

Info?
sarah reviewed 2022-09-09 15:18:06 +00:00
lib.go Outdated
@ -1299,3 +1300,4 @@
log.Errorf("Error attempting to load servers :%s\n", err)
application.GetPrimaryBus().Publish(event.NewEventList(servers.ZeroServersLoaded))
} else if len(serversList) == 0 {
log.Infof("loaded 0 servers\n")

Info?

Info?
sarah reviewed 2022-09-09 15:18:11 +00:00
lib.go Outdated
@ -1302,2 +1303,4 @@
log.Infof("loaded 0 servers\n")
application.GetPrimaryBus().Publish(event.NewEventList(servers.ZeroServersLoaded))
} else {
log.Infof("Loaded servers, making list")

Info?

Info?
sarah reviewed 2022-09-09 15:18:11 +00:00
lib.go Outdated
@ -1302,2 +1303,4 @@
log.Infof("loaded 0 servers\n")
application.GetPrimaryBus().Publish(event.NewEventList(servers.ZeroServersLoaded))
} else {
log.Infof("Loaded servers, making list")

Info?

Info?
sarah approved these changes 2022-09-09 15:18:19 +00:00
dan force-pushed networkAfterOnline from 7fbc2312cc to b5dff0f0f6 2022-09-09 16:01:14 +00:00 Compare
dan force-pushed networkAfterOnline from b5dff0f0f6 to f75286cb97 2022-09-09 16:42:54 +00:00 Compare
dan merged commit 2f188b3a46 into trunk 2022-09-09 16:43:03 +00:00
This repo is archived. You cannot comment on pull requests.
No reviewers
No Label
No Milestone
No Assignees
3 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cwtch.im/libcwtch-go#96
No description provided.