Handling relation-get gives null data issue

2014-10-31 Thread Malshan Peiris
Hi all, I have two charms which is joined by a relation, and supposed to send data both ways. In the relation-joined hook of the charms i have put appropriate relation-set in one charm and relation-get in the other. Same is done vice versa. However, randomly atleast one charm fails to get the

Re: Handling relation-get gives null data issue

2014-10-31 Thread Kapil Thangavelu
You've setup a race condition. First you should be receiving data in relation-changed not relation-joined. If you try to receive set values in relation-joined and the sending side comes up second, you'll never see the data. Also you should make things resistant to races by exiting if the data you