Skip to content

Commit

Permalink
make sure to call cancel func (#544)
Browse files Browse the repository at this point in the history
  • Loading branch information
skaji authored and denisenkom committed Nov 28, 2019
1 parent 7327370 commit 1d7a30a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mssql.go
Original file line number Diff line number Diff line change
Expand Up @@ -613,11 +613,13 @@ loop:
break loop
case doneStruct:
if token.isError() {
cancel()
return nil, s.c.checkBadConn(token.getError())
}
case ReturnStatus:
s.c.setReturnStatus(token)
case error:
cancel()
return nil, s.c.checkBadConn(token)
}
}
Expand Down

0 comments on commit 1d7a30a

Please sign in to comment.