소스 검색

globalised some stuff in a function, i presume

Tareef 6 년 전
부모
커밋
ccdada1b55
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      a2/sender.py

+ 2 - 1
a2/sender.py

@@ -53,7 +53,8 @@ sock.bind(('localhost', rport))
 # start receiver thread
 # receiver function
 def receiver():
-    #global confirmed   
+    global confirmed
+    global waking
  
     while(True):
         # get a packet, turn into packet type