Skip to content

Commit

Permalink
Remove a useless line from SyncthingConnectionsWatcher, fixing NRE
Browse files Browse the repository at this point in the history
Not sure why this was ever added. It caused an NRE if prevConnections was null.

Fixes #380
  • Loading branch information
canton7 committed Jun 25, 2017
1 parent a20fe08 commit fe6304c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/SyncTrayzor/Syncthing/SyncthingConnectionsWatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ protected override void OnStart()
protected override void OnStop()
{
this.apiClient = null;
var prev = this.prevConnections.Total;

// Send an update with zero transfer rate, since that's what we're now doing
this.Update(this.prevConnections);
Expand Down

0 comments on commit fe6304c

Please sign in to comment.