Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TcpSocketListener stops receive after first time #154

Open
Tical- opened this issue Jun 22, 2018 · 1 comment
Open

TcpSocketListener stops receive after first time #154

Tical- opened this issue Jun 22, 2018 · 1 comment

Comments

@Tical-
Copy link

Tical- commented Jun 22, 2018

Hi, TcpSocketListener stops receive after first time.

public TcpSocketListener listener;
var listenPort = 8912;
listener = new TcpSocketListener();
listener.ConnectionReceived += DO;
AsyncHelpers.RunSync(async () => await listener.StartListeningAsync(listenPort));

I try to reinit this. Do not working:
listener.StopListeningAsync();
listener.Dispose();
listener = new TcpSocketListener();
listener.ConnectionReceived += DO;
AsyncHelpers.RunSync(async () => await listener.StartListeningAsync(8912));
listener.ConnectionReceived += DO;
I dont know, why

@bilalsammour
Copy link

For me too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants