Skip to content
Snippets Groups Projects
Unverified Commit e4fbb2f0 authored by meskio's avatar meskio :tent:
Browse files

Close the listener if it has being initialized

parent 9201d6c1
Branches
No related tags found
No related merge requests found
......@@ -34,8 +34,11 @@ func (ss *ShapeShifter) Open() error {
}
func (ss *ShapeShifter) Close() error {
if ss.ln != nil {
return ss.ln.Close()
}
return nil
}
func (ss ShapeShifter) clientAcceptLoop() error {
for {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment