I get a Block if without End If error with the following code:

Code:
    If NextTorrent = True Then
                    End Sub
             End If
How can I set up an if statement to where if the boolean value is true, the sub is closed??