Commit 21fcd58
authored
Prevent ResourceWarning about listening socket
Server threads take some times to shutdown, using the server as a
context manager force a call to ThreadMixin.server_close() which
waits on the threads.1 parent 8f90e80 commit 21fcd58
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | | - | |
17 | | - | |
| 16 | + | |
| 17 | + | |
0 commit comments