Skip to content

Commit

Permalink
fixes nanomsg#48 deadlock on Close()
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore committed Jan 23, 2015
1 parent d3e1664 commit 89caba5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2014 The Mangos Authors
// Copyright 2015 The Mangos Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use file except in compliance with the License.
Expand Down Expand Up @@ -152,9 +152,10 @@ func (sock *socket) Close() error {
}
select {
case <-fin:
break
case <-time.After(100 * time.Millisecond):
continue
}
break
}
}
for _, p := range pipes {
Expand Down

0 comments on commit 89caba5

Please sign in to comment.