Browse Source

Fix: add missing defer

Rod Hynes 8 years ago
parent
commit
36faea0449
1 changed files with 1 additions and 1 deletions
  1. 1 1
      psiphon/common/tun/tun.go

+ 1 - 1
psiphon/common/tun/tun.go

@@ -489,7 +489,7 @@ func (server *Server) getSession(sessionID string) *session {
 func (server *Server) resumeSession(session *session, channel *Channel) {
 
 	session.mutex.Lock()
-	session.mutex.Unlock()
+	defer session.mutex.Unlock()
 
 	session.channel = channel