Skip to content

Commit

Permalink
Merge pull request #19 from blacknon/develop
Browse files Browse the repository at this point in the history
defer add
  • Loading branch information
blacknon authored Jun 14, 2018
2 parents ef3355a + 3f130f1 commit 277e866
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scp/scpcmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ func (r *RunInfoScp) forScp(mode string) {
finished <- true
return
}
defer session.Close()

cp.Permission = r.PermissionFlag
cp.Session = session

Expand Down

0 comments on commit 277e866

Please sign in to comment.