noodles8436 / THE-CROSS

A Smart Traffic Control System for the protection of the socially disadvantaged and rapid transport of emergency vehicles.
GNU General Public License v3.0
0 stars 3 forks source link

[BUG][PERFORMANCE] Error Occurred when Server reopen Socket #42

Closed noodles8436 closed 3 years ago

noodles8436 commented 3 years ago

Please make sure that this is an issue related to performance of THE-CROSS

System information

Describe the current behavior After the client shut down, the server failed to reopen the socket and shut down.

Describe the expected behavior When the client is shut down, the server must reopen the socket.

Other info / logs Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

Traceback (most recent call last):
  File "Server.py", line 42, in <module>
    startServer()
  File "Server.py", line 38, in startServer
    server = DetectorServer(IP, PORT)
  File "C:\Users\Developer KTW\THE-CROSS\DetectorServer.py", line 64, in __init__
    self.receiveImages()
  File "C:\Users\Developer KTW\THE-CROSS\DetectorServer.py", line 125, in receiveImages
    self.socketClose()
  File "C:\Users\Developer KTW\THE-CROSS\DetectorServer.py", line 69, in socketClose
    time.sleep(1)
NameError: name 'time' is not defined
noodles8436 commented 3 years ago

Import time was missing from the DetectorServer.py source. This will be updated soon.