commit | b2bcd49a7297efb3cf94f7110c6c5cef5e019018 | [log] [tgz] |
---|---|---|
author | Jungho Ahn <jhahn@google.com> | Fri Oct 16 16:25:10 2015 -0700 |
committer | Jungho Ahn <jhahn@google.com> | Fri Oct 16 16:25:10 2015 -0700 |
tree | fe933f599f713caac3346ed7f007ff0f02358bc3 | |
parent | 0ba0cf9b0ddd3bf5e73dbdda70298e7f30642196 [diff] |
discovery: change Advertise() to return done channel Advertising is stopped when the given context done, but there is no way to know when it is actually stopped. This makes difficult to update the existing advertisement since it should be stopped before advertising a new one. This CL change Advertise() to return done channel which will be closed when it is stopped. MultiPart: 3/3 Change-Id: I1c7b2dd554b0d47c4d79138267a52966b6eb83f5