Isn't the logic the other way round - if the PZP is not connected and the
PZH is connected, forward it to the pzh


On 28 October 2013 09:23, Habib Virji <notifications@github.com> wrote:

> In lib/pzp_sendMessage.js:
>
> > @@ -107,7 +107,7 @@ var PzpSendMessage = function () {
> >                          PzpObject.connectedWebApp[address].socket.resume ();
> >                      }
> >                  }
> > -            } else if (isSameZone(address) && !PzpObject.getConnectedPzp(address) && PzpObject.getPzhId()) {
> > +            } else if (!PzpObject.getConnectedPzp(address) && PzpObject.getPzhId()) {
>
> This is vital issamezone, if you remove it then if PZP is not connected
> directly message will not go to PZH
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/webinos/webinos-pzp/pull/66/files#r7242868>
> .
>