Skip to content

Commit

Permalink
Don't forget href when doing links
Browse files Browse the repository at this point in the history
  • Loading branch information
Théo Verhelst committed Dec 3, 2018
1 parent 8d3e8a1 commit f736904
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ <h1>TORrents client</h1>
</a>
</div>
</div>
<a href="">
<a href="/disconnect">
<button class="btn waves-effect waves-light">Onion disconnect
<i class="material-icons right">lock_closed</i>
</button>
Expand Down
9 changes: 5 additions & 4 deletions node.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,11 @@ def forward_upstream(self, message, colour):
# for the tracker
if "FSID" in decoded_payload:
return self.transmit_to_bridge(decoded_payload, colour)
# If we pass here, then we should just forward upstream
elif "type" in decoded_payload:
if decoded_payload["type"] == "teardown":
self.teardown(message["CID"])
# If the message is a teardown message
elif "type" in decoded_payload and decoded_payload["type"] == "teardown":
self.teardown(message["CID"])

# If we pass here, then we should just forward upstream

except (UnicodeDecodeError, json.decoder.JSONDecodeError) as e:
# A decoding exception occurred, just forward upstream
Expand Down

0 comments on commit f736904

Please sign in to comment.