fix: revert back to only passing the network id if its set, due to dart bug being fixed
This commit is contained in:
parent
8281729888
commit
13be047bf8
|
@ -56,11 +56,12 @@ func (h HandshakeOpen) EncodeMsgpack(enc *msgpack.Encoder) error {
|
|||
return err
|
||||
}
|
||||
|
||||
err = enc.EncodeString(h.networkId)
|
||||
if err != nil {
|
||||
return err
|
||||
if h.networkId != "" {
|
||||
err = enc.EncodeString(h.networkId)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue