Browse Source

Fix: typo

Rod Hynes 10 years ago
parent
commit
5474c9254a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      psiphon/tunnel.go

+ 2 - 2
psiphon/tunnel.go

@@ -163,10 +163,10 @@ func EstablishTunnel(
 // Supports multiple and/or concurrent calls to Close().
 // When isDicarded is set, operateTunnel will not attempt to send final
 // status requests.
-func (tunnel *Tunnel) Close(isDicarded bool) {
+func (tunnel *Tunnel) Close(isDiscarded bool) {
 
 	tunnel.mutex.Lock()
-	tunnel.isDiscarded = isDicarded
+	tunnel.isDiscarded = isDiscarded
 	isClosed := tunnel.isClosed
 	tunnel.isClosed = true
 	tunnel.mutex.Unlock()