Skip to content

Commit c3d77d7

Browse files
committed
Fix bugs.
1 parent 43c23b8 commit c3d77d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ func (askSelf *AskDef) AskChannel(target ActorHandle) (*chan interface{}, *time.
162162
var timer *time.Timer
163163
target.Send(askSelf)
164164
if askSelf.timeout != nil {
165-
timer = time.NewTimer(time.Second)
165+
timer = time.NewTimer(*askSelf.timeout)
166166
go func() {
167167
<-timer.C
168168
close(*askSelf.ch)

0 commit comments

Comments
 (0)