Skip to content

Commit 5f717f1

Browse files
author
Stephen von Takach
committed
ensure cleanup isn't called multiple times
fixes #11
1 parent c9d7440 commit 5f717f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/ruby-tls/ssl.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,7 @@ def negotiated
689689

690690
SSL_RECEIVED_SHUTDOWN = 2
691691
def cleanup
692+
return unless @ready
692693
@ready = false
693694

694695
InstanceLookup.delete @ssl.address

0 commit comments

Comments
 (0)