View Single Post
Posts: 540 | Thanked: 288 times | Joined on Sep 2009
#128
Originally Posted by hcm View Post
ok with the new version, the first icd-error has vanished.
IcD1 interface is no longer instantiated (it wasn't really used for anything usefull earlier)

Originally Posted by hcm View Post
but right after the icd2-error, the script hangs sometimes (I canceled after like 4 minutes…)
Apparently, it only hangs if I'm not connected to either GPRS or WLAN (but not always, when I'm not connected). If it hangs, I can go to the connection-selection menu (no need to select a connection, just go there) and the script continues.
Stupid me, hadn't though about what happens when IcD2 state_req returns 0 (though as I understand the API docs it should send a signal even if there are no connection active), also added a SIGALARM to make sure that we get out of the DBUS mainloop.

The reason opening the connection menu solves this is the connections scan triggers state signals when the scan is done. And thus the state signal reaches listener in hotspot_backend.py which can then continue and exit the mainloop where it was waiting for a signal to arrive

Originally Posted by hcm View Post
The next thing I noticed: When I didn't have a connection before, the backend closes the connection when I stop it. But when I wanted to connect to GPRS manually after that, the GPRS-Connection was not there, just the WLANs!
After getting out of the loop by opening the connection menu ? Not that it should matter.