Skip to content

Commit

Permalink
systemd support for debian/rules
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanaelle committed Jan 8, 2016
1 parent 94bd79e commit 2390024
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ override_dh_auto_install:
override_dh_auto_test:

%:
dh $@ --buildsystem=golang --with=golang
dh $@ --buildsystem=golang --with=golang --with=systemd
2 changes: 1 addition & 1 deletion src/socket.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func (conn *Conn) Read(b []byte) (n int, err error) {
return n,nil
}

if nerr,ok := err.(net.Error); !ok || !nerr.Timeout() {
if nerr,ok := err.(net.Error); !ok || !(nerr.Timeout() && nerr.Temporary()) {
return
}
}
Expand Down

0 comments on commit 2390024

Please sign in to comment.