chore: typo

This commit is contained in:
Hayden Hargreaves 2026-04-14 22:32:04 -07:00
parent e5be0dd17b
commit c1e06a9dfc
2 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ func StartSession(cmd model.Command, addr string) (*Session, error) {
proc, err := StartProcess(cmd, addr, msgs) proc, err := StartProcess(cmd, addr, msgs)
if err != nil { if err != nil {
proxy.Destory(ps, msgs) proxy.Destroy(ps, msgs)
return nil, err return nil, err
} }
@ -48,6 +48,6 @@ func (s *Session) Stop() {
s.stopOnce.Do(func() { s.stopOnce.Do(func() {
StopProcess(s.proc, s.msgCh, syscall.SIGTERM) StopProcess(s.proc, s.msgCh, syscall.SIGTERM)
proxy.Destory(s.proxy, s.msgCh) proxy.Destroy(s.proxy, s.msgCh)
}) })
} }

View File

@ -28,7 +28,7 @@ func NewProxyServer(addr string, ch chan<- model.Message) (*model.ProxyServer, e
} }
// BUG: Not sure what all this does // 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) ctx, cancel := context.WithTimeout(context.Background(), 2*time.Second)
defer cancel() defer cancel()