Skip to content

Commit f6aaa31

Browse files
Minor changes
1 parent c7dd7e4 commit f6aaa31

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

OtherSocketExamples/select_simple_server.py

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from select import select
55
from collections import defaultdict
66
import threading
7+
import sys
78

89
"""
910
Connect to this server using netcat or similar utilities
@@ -107,6 +108,7 @@ def main():
107108
logging.warning("Server stopping...")
108109
finally:
109110
server_sock.close()
111+
sys.exit()
110112

111113

112114
if __name__ == "__main__":

0 commit comments

Comments
 (0)