-
-
Notifications
You must be signed in to change notification settings - Fork 181
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
This causes task cancelled unhandled exception #283
Comments
|
Not sure what you meant, but the code you linked is inside a try catch catch (Exception e)
{
Logging.Logger?.LogError(e, "[{Function}]:[{PrinterName}] Unable to connect to printer.", $"{this}.{MethodBase.GetCurrentMethod().Name}", _settings.PrinterName);
client.Close();
throw;
} You can check the logs for the error details, but sounds like you are unable to connect to your printer... |
Actually, there is a |
Yep, the If you have a better proposal of how to handle that, you are welcome to open a PR as this is an open source project :) |
https://github.com/lukevp/ESC-POS-.NET/blame/ac185fc58bf9e5ad937750b8fc92c02baf344cc9/ESCPOS_NET/Printers/ImmediateNetworkPrinter.cs#L49
The text was updated successfully, but these errors were encountered: