chore: typo
This commit is contained in:
parent
e5be0dd17b
commit
c1e06a9dfc
@ -29,7 +29,7 @@ func StartSession(cmd model.Command, addr string) (*Session, error) {
|
||||
|
||||
proc, err := StartProcess(cmd, addr, msgs)
|
||||
if err != nil {
|
||||
proxy.Destory(ps, msgs)
|
||||
proxy.Destroy(ps, msgs)
|
||||
return nil, err
|
||||
}
|
||||
|
||||
@ -48,6 +48,6 @@ func (s *Session) Stop() {
|
||||
|
||||
s.stopOnce.Do(func() {
|
||||
StopProcess(s.proc, s.msgCh, syscall.SIGTERM)
|
||||
proxy.Destory(s.proxy, s.msgCh)
|
||||
proxy.Destroy(s.proxy, s.msgCh)
|
||||
})
|
||||
}
|
||||
|
||||
@ -28,7 +28,7 @@ func NewProxyServer(addr string, ch chan<- model.Message) (*model.ProxyServer, e
|
||||
}
|
||||
|
||||
// BUG: Not sure what all this does
|
||||
func Destory(ps *model.ProxyServer, ch chan<- model.Message) {
|
||||
func Destroy(ps *model.ProxyServer, ch chan<- model.Message) {
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 2*time.Second)
|
||||
defer cancel()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user