commit fdc02b321ca0f8b1d57e99370b36274c007e514f
parent 74482492ad56745ed6161c7ead147e8d36856e3e
Author: rbckman <rob@tarina.org>
Date: Tue, 10 Jan 2023 15:46:33 +0000
yo
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tarina.py b/tarina.py
@@ -1166,10 +1166,10 @@ def loadsettings(filmfolder, filmname):
##---------------Send to server----------------------------------------------
def sendtoserver(host, port, data):
- s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
while True:
try:
print('sending data to '+host+':'+str(port))
+ s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((host, port))
s.send(str.encode(data))
break