Skip to content

Commit

Permalink
Redo reset_session
Browse files Browse the repository at this point in the history
  • Loading branch information
bill88t committed Dec 18, 2023
1 parent 00a8f40 commit 3e2b88b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion other/binextra/netutils/wget.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
vr("filee").write(ljinux.modules["network"].get(vr("args")[1]).content)
else:
ljinux.based.error(7)
ljinux.modules["network"].resetsock()
ljinux.modules["network"].reset_session()
else:
ljinux.based.error(9)
else:
Expand Down
4 changes: 2 additions & 2 deletions other/drivers/driver_wifi.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def timeset(self, tz=None) -> bool:
tz = int(utc_offset[1:3])
if negative:
tz = -tz
self.resetsock()
self.reset_session()
except:
return False
else:
Expand All @@ -266,7 +266,7 @@ def timeset(self, tz=None) -> bool:
return True
return False

def resetsock(self) -> None:
def reset_session(self) -> None:
del self._session
self._session = Session(self._pool, create_default_context())

Expand Down

0 comments on commit 3e2b88b

Please sign in to comment.