clean up some old getters

This commit is contained in:
Shivaram Lingamneni
2019-05-22 19:07:12 -04:00
parent 05459012ef
commit 4b88a60ba6
9 changed files with 16 additions and 30 deletions
+1 -1
View File
@@ -336,7 +336,7 @@ func (client *Client) run(session *Session) {
if r := recover(); r != nil {
client.server.logger.Error("internal",
fmt.Sprintf("Client caused panic: %v\n%s", r, debug.Stack()))
if client.server.RecoverFromErrors() {
if client.server.Config().Debug.recoverFromErrors {
client.server.logger.Error("internal", "Disconnecting client and attempting to recover")
} else {
panic(r)