Merge branch 'master' of git://github.com/thoj/Go-IRC-Client-Library
This commit is contained in:
commit
334fc8ff3e
4
irc.go
4
irc.go
@ -62,7 +62,7 @@ func writer(irc *IRCConnection) {
|
|||||||
for !error {
|
for !error {
|
||||||
b := []byte(<-irc.pwrite)
|
b := []byte(<-irc.pwrite)
|
||||||
if b == nil || irc.socket == nil {
|
if b == nil || irc.socket == nil {
|
||||||
return
|
break
|
||||||
}
|
}
|
||||||
_, err := irc.socket.Write(b)
|
_, err := irc.socket.Write(b)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -108,6 +108,8 @@ func (irc *IRCConnection) SendRaw(message string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (i *IRCConnection) Reconnect() os.Error {
|
func (i *IRCConnection) Reconnect() os.Error {
|
||||||
|
close(i.pwrite)
|
||||||
|
close(i.pread)
|
||||||
<-i.syncreader
|
<-i.syncreader
|
||||||
<-i.syncwriter
|
<-i.syncwriter
|
||||||
for {
|
for {
|
||||||
|
Loading…
Reference in New Issue
Block a user