mutex removed

This commit is contained in:
nquidox 2026-04-03 10:27:01 +03:00
parent 5e8661cfcd
commit f23b388689

View file

@ -8,10 +8,6 @@ import (
func (c *Client) handleReconnect(addr string) {
for {
//c.mutex.Lock()
//c.isReady = false
//c.mutex.Unlock()
c.logger.Println("Connecting to server...")
conn, err := c.connect(addr)
@ -45,10 +41,6 @@ func (c *Client) connect(addr string) (*amqp.Connection, error) {
func (c *Client) handleReInit(conn *amqp.Connection) bool {
for {
//c.mutex.Lock()
//c.isReady = false
//c.mutex.Unlock()
if err := c.init(conn); err != nil {
c.logger.Printf("Failed to initialize connection: %s", err)