From 86a61cf2bfa2d7ef3d168d727236e00b22a6edc0 Mon Sep 17 00:00:00 2001 From: cx uname Date: Thu, 1 Nov 2012 15:59:29 +0400 Subject: [PATCH] minor fixes --- main.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index c3769f2..436870c 100644 --- a/main.go +++ b/main.go @@ -1,8 +1,8 @@ package main import ( - "github.com/cxindex/xmpp" "fmt" + "github.com/cxindex/xmpp" "io/ioutil" "log" "os/exec" @@ -71,8 +71,7 @@ start: case next = <-cs: log.Println(next.Value) case <-time.After(65 * time.Second): - log.Println("closed after 65 seconds of inactivity") - Conn.Close() + log.Println(Conn.Close(), "\n\t", "closed after 65 seconds of inactivity") goto start } switch t := next.Value.(type) { @@ -95,6 +94,9 @@ start: log.Println("da fuq?") } } + log.Println(Conn.Close(), "\n\t", "wtf am I doing here?") + time.Sleep(5 * time.Second) + goto start } func SelfHandler(Conn *xmpp.Conn, Msg *xmpp.ClientMessage) {