Skip to content

Commit 0074f2f

Browse files
authored
fix: destruct timer duration (#176)
1 parent 47e184c commit 0074f2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ func (server *server) startEventForwarder(ctx context.Context) {
151151
if server.connectedClients.Load() == 0 {
152152
// Keep the client and IRC connection alive for 3 minutes in case another client connects
153153
server.log.Println("No clients connected. Waiting 3 minutes before closing connection.")
154-
destructTimer = time.AfterFunc(time.Second*30, func() {
154+
destructTimer = time.AfterFunc(3*time.Minute, func() {
155155
if server.connectedClients.Load() == 0 {
156156
server.irc.Disconnect()
157157
server.log.Println("IRC connection closed.")

0 commit comments

Comments
 (0)