about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--Documentation/dtas-player_protocol.txt2
-rw-r--r--lib/dtas/unix_client.rb10
2 files changed, 2 insertions, 10 deletions
diff --git a/Documentation/dtas-player_protocol.txt b/Documentation/dtas-player_protocol.txt
index 7c5d57f..360eb84 100644
--- a/Documentation/dtas-player_protocol.txt
+++ b/Documentation/dtas-player_protocol.txt
@@ -8,7 +8,7 @@ dtas-player_protocol - protocol for controling dtas-player
 # DESCRIPTION
 
 This gives a specification of the dtas-player protocol over a local Unix
-SOCK_SEQPACKET or SOCK_DGRAM socket.  The dtas-player protocol should NOT be
+SOCK_SEQPACKET socket.  The dtas-player protocol should NOT be
 considered stable at this point and compatibility will break.
 
 Inspiration is taken from MPRIS and MPRIS 2.0 specifications (e.g.
diff --git a/lib/dtas/unix_client.rb b/lib/dtas/unix_client.rb
index cc6bf0f..0811ad4 100644
--- a/lib/dtas/unix_client.rb
+++ b/lib/dtas/unix_client.rb
@@ -14,15 +14,7 @@ class DTAS::UNIXClient # :nodoc:
   end
 
   def initialize(path = self.class.default_path)
-    @to_io = begin
-      raise if ENV["_DTAS_NOSEQPACKET"]
-      Socket.new(:AF_UNIX, :SOCK_SEQPACKET, 0)
-    rescue
-      warn("get your operating system developers to support " \
-           "SOCK_SEQPACKET for AF_UNIX sockets")
-      warn("falling back to SOCK_DGRAM, reliability possibly compromised")
-      Socket.new(:AF_UNIX, :SOCK_DGRAM, 0)
-    end
+    @to_io = Socket.new(:AF_UNIX, :SOCK_SEQPACKET, 0)
     @to_io.connect(Socket.pack_sockaddr_un(path))
   end