# # # patch "examples/display_branches.lua" # from [f4d7d76a47fd04699f36fa079e801ab8d7e74dc6] # to [ce3eb936fa49e05177ab31816d300f5a32742651] # ============================================================ --- examples/display_branches.lua f4d7d76a47fd04699f36fa079e801ab8d7e74dc6 +++ examples/display_branches.lua ce3eb936fa49e05177ab31816d300f5a32742651 @@ -32,7 +32,13 @@ end _note_netsync_cert_received(rev_id,key,name,value,nonce) end -function note_netsync_end(nonce) +function note_netsync_end(nonce, status) + -- only try to display results if we got + -- at least partial contents + if status > 211 then + return + end + local first = true for item, amount in pairs(netsync_branches[nonce]) do