This repository was archived by the owner on Jan 9, 2024. It is now read-only.
Commit 4b55305
Do not attempt to disconnect if connection is none
When handling a ConnectionError we could be faced with the situation
that we still don't have a connection, so attempting to disconnect would
result in an error. To prevent this, we first check if the connection is
None before attempting to disconnect.1 parent 58bafe4 commit 4b55305
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
647 | 647 | | |
648 | 648 | | |
649 | 649 | | |
650 | | - | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
651 | 655 | | |
652 | 656 | | |
653 | 657 | | |
| |||
0 commit comments