Skip to content

Commit

Permalink
Merge pull request #99 from frrad/expose_error
Browse files Browse the repository at this point in the history
expose clientHasQuit error
  • Loading branch information
slingamn authored Nov 8, 2023
2 parents 8d1f09a + 90d74d0 commit 5474a63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ircevent/irc.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ var (
NoLabeledResponse = errors.New("The server failed to send a labeled response to the command")

serverDidNotQuit = errors.New("server did not respond to QUIT")
clientHasQuit = errors.New("client has called Quit()")
ClientHasQuit = errors.New("client has called Quit()")
)

// Call this on an error forcing a disconnection:
Expand Down Expand Up @@ -613,7 +613,7 @@ func (irc *Connection) Connect() (err error) {
defer irc.stateMutex.Unlock()

if irc.quit {
return clientHasQuit // check this again in case of Quit() while we were asleep
return ClientHasQuit // check this again in case of Quit() while we were asleep
}

// mark Server as stopped since there can be an error during connect
Expand Down

0 comments on commit 5474a63

Please sign in to comment.