Quantcast
Channel: sshnet Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1026

Commented Issue: Thread-safe event handling [1551]

$
0
0
Consider rewriting this:

if (this.ErrorOccurred != null)
{
this.ErrorOccurred(this, e);
}

Into:

var handler = ErrorOccurred;
if (handler != null)
{
handler(this, e);
}
Comments: ** Comment from web user: olegkap **

I just applied you suggestion in 24900 commit but I still wondering whether I should use lock.
Closing it now.

Thanks,
Oleg


Viewing all articles
Browse latest Browse all 1026

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>