Skip to content

Data stuck in loop #20

@SinanAkkoyun

Description

@SinanAkkoyun

Hi

from socketengine import host

h = host()
h.start()

while True:
	data = h.get_ALL("test")

	if data is not None:
		for item in data:
			print(item)
			if(item == "Hello there!"):
				print("Sent")
			break

h.close()

If I use that code, the received message is stuck forever and does not clear, resulting in the while loop to constantly output the received message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions