Update server.py
Some checks are pending
Check syntax / check (push) Waiting to run
Some checks are pending
Check syntax / check (push) Waiting to run
This commit is contained in:
parent
a89a10705c
commit
e0df590c76
1 changed files with 17 additions and 15 deletions
|
@ -612,6 +612,7 @@ def cleanup_manual():
|
||||||
nickname_list[k].sendall(f":{h}!~DISCONNECTED@DISCONNECTED PART {j} :IRCat Cleanup: Found missing connection!!\r\n")
|
nickname_list[k].sendall(f":{h}!~DISCONNECTED@DISCONNECTED PART {j} :IRCat Cleanup: Found missing connection!!\r\n")
|
||||||
|
|
||||||
def tcp_session(sock):
|
def tcp_session(sock):
|
||||||
|
while True:
|
||||||
try:
|
try:
|
||||||
while opened:
|
while opened:
|
||||||
print("Waiting for connection...")
|
print("Waiting for connection...")
|
||||||
|
@ -627,6 +628,7 @@ def tcp_session(sock):
|
||||||
print(traceback.format_exc())
|
print(traceback.format_exc())
|
||||||
def ssl_session(sock2):
|
def ssl_session(sock2):
|
||||||
with context.wrap_socket(sock2, server_side=True) as sock:
|
with context.wrap_socket(sock2, server_side=True) as sock:
|
||||||
|
while True:
|
||||||
try:
|
try:
|
||||||
while opened:
|
while opened:
|
||||||
print("Waiting for connection...")
|
print("Waiting for connection...")
|
||||||
|
|
Loading…
Reference in a new issue