Fix unblocking exec waiter
This commit is contained in:
+7
-2
@@ -34,8 +34,13 @@ func Init() {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
waiter <- conn
|
// unblocking write to channel
|
||||||
return true
|
select {
|
||||||
|
case waiter <- conn:
|
||||||
|
return true
|
||||||
|
default:
|
||||||
|
return false
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
streams.HandleFunc("exec", Handle)
|
streams.HandleFunc("exec", Handle)
|
||||||
|
|||||||
Reference in New Issue
Block a user