Skip to content

Commit

Permalink
Bugfix: Crash when no name is given to receiver
Browse files Browse the repository at this point in the history
  • Loading branch information
keijiro committed Sep 18, 2018
1 parent 5a0a01d commit 7d2c9a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Assets/Klak/Spout/Runtime/SpoutReceiver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ void Update()
// Plugin lazy initialization
if (_plugin == System.IntPtr.Zero)
{
if (string.IsNullOrEmpty(_sourceName)) return;
_plugin = PluginEntry.CreateReceiver(_sourceName);
if (_plugin == System.IntPtr.Zero) return; // Spout may not be ready.
}
Expand Down

0 comments on commit 7d2c9a9

Please sign in to comment.